Post-deploy hook enhancements

Two additional features for post-deploy hooks:

 - The limitation of one hook per project and stage has now been removed (this required a new database format and migration code)
 - Extra URL substitutions have been added allowing the values of tags to be substituted