Fixed onBeforePublish and onAfterPublish exensions

If these are not present some extensions like staticpublishqueue stop working on SiteTree.
Merge pull request #60 from markguinn/patch-1

Fixed onBeforePublish and onAfterPublish exensions