Added beforeHook for using plugins

To use Browserify plugins they need to be applied before everything else. Added a beforeHook for modifying the bundle before anything else happens.

This allows you to use plugins like Stringify https://github.com/JohnPostlethwait/stringify