Import core functions from supergenpass repository

Importing from commit 39909a0329f79801e656db7541ca4bb96a80d5db,
currently available at GitHub at chriszarate/supergenpass.
Minimal runnable npm module
Simple tests
Rename hash file
Straightforward browser environment support
_hash method