Code is here: https://gist.github.com/benvan/9111039
To install: Follow instructions at top of gist.