[Deploy] Added before_deploy option

* after_deploy option now may be an array of commands
* a command in before_deploy or after_deploy may be prefixed @local or @remote, default is @remote