add js crypto layer

Only a hash function and a nonce generator.
generate otp in js

OPT have been generated by a call to Java from node. Now they are
created directly in node.
use hash of the manifest instead of electionID