Fixed Nonce class, added minor tests, made Database to work with it.

Added more functionality in Handler class. Added more features to test client.
Fixed Messages to be on par with the specification.

TODO: factor out the current DSA and parametrize it, as to the specs.