Add an extension for when a user requests a deployment

There is a decision of whether to put this before or after the permissions check.
I opted for after, since of the potential security implications.
A safe default saves peoples lives.
Merge pull request #16 from ss23/dodeploy-extension

Add an extension for when a user requests a deployment