adding support for both require and register API
Merge pull request #8 from paypal/hapi-register

adding support for both require and register API