Fixes for hash function misuse and compatibility with other implementations.
Added some additional validity checks found in the reference implementation version 2.1.2: http://srp.stanford.edu/download.html