Auth crypto primitives.

Initial work. Only signs strings.
Missing signing complex json structures.
Also missing timestamped signing.