Fixed a bug that was causing a 500 error on empty searches.
Passwords were being shown in the console. This is a no-no.
Added support for sessions and message flashing.