plugin.events is deprecated in Hapi 8.0

`plugin.events.on` were deprecated in Hapi 8.0.0 and also the variable referring to the plugin has been replaced with server to stay in line with Hapi conventions.