name the register function
update events registering to work with hapi8
Fix tests for hapi 0.8