More crypto utils.

Added stubs for the server-side crypt utilities, with implementations for generate_salt and generate_challenge.