Remove dead code and change the testutils API.

Browser related hooks have been removed, since acceptance testing was never fully integrated with PhantomJS, although this may be implemented in the future. Additionally, the before and after hooks have been moved into an explicit export property in testutils.