Add command-line HOTP tool.
Update CLI HOTP key generator.
Add serialisation for keys.

Serialisation is done in DER format.
Update serialisation docs.