Adding a hapi plugin register function for better hapi integration.