Made errors more Python version-independent.
Added Debug flag (currently unused).
Hash the password on the server.

This saves us the need of distributing additional client libraries,
and requires us to actually enable proper security instead of
badly-built shims.