Octopress hooks

Adding support for site hooks among other improvements. @parkr want to take a look?