Changed where the session secret is drawn from.
Serializing and deserializing users from the database.
Added db select. Tests now run against db 1, and wipe it on start.