Added support for before_build and after_install commands.
Merge branch 'master' of https://github.com/manastech/dist