Make hapi 6 compatible

Added `register.attributes`