update to 6.0.x

Hi!

After trying to use with hapi 6.0.2 I just realised that the plugin interface have changed to use ```exports.register(plugin, options, next)``` instead of  ```module.exports```. This PR is a dirty implementation of the plugin using the new interface.

Take a look and tell me what you think.

cheers!