Cleaned up API a bit. (Wiki is now out-of-date) Added functions to generate the first server side message (json-formatted, contains the salt and B).