Reformatted Javascript code to make Crockford's conventions.
Improved handling of login errors by adding an error page.

Fixed a nasty hidden defect in user lookup... the Mongo find call would
always find a user because it was using keyword arguments for the constraint
instead of providing a constraint dictionary.