Add support for pre/post deployment script.

Fixes #4