Make hapi 6 compatible

Added `register.attributes`
Merge pull request #5 from nlf/patch-1

Make hapi 6 compatible