Add LICENSE.
Combine source files into single module.

(Beginning code re-organization).
Replace shebangs with coding directives.
Move password checking into user class.
Remove get_user function.
Remove challenge function.
Replace kwargs dictionary with keyword args.
Ensure g.user is set (even when not logged in).
Rename get_by_username().
Remove marshal.