update deps and refactor for hapijs 8.x

Closes #1