Auth crypto primitives.

Initial work. Only signs strings.
Missing signing complex json structures.