Reworked the plugin to match Hapi 2.x