Add PHP version and hash extension requirements to composer.json.
Add options array argument to HOTP class constructor and fix error in validate() method.
Add Travis-CI support.