Initial commit. Previously hosted as a gist here http://n8h.me/17PBAMq