add deployBefore and deployAfter events. Closes #509
Merge pull request #510 from sergiolepore/add/deploy-events

add deployBefore and deployAfter events. Closes #509