Added DSA support (hacked!). Added extra ds required for server.

Added start of message interfaces, to be replaced by ATD for json.
Added Nonce and Revision. To be enhanced soon for actual data storage.
Added testing for all primitives.