allow passing local require to hapi. closes #980
allow passing local require to hapi. closes #980