added compatibility with hapi 6
Merge pull request #2 from bleupen/hapi_6

added compatibility with hapi 6