Added ability to run tests on test database. Had to rework the way the database session is created and used in views. Shouldn't make any difference to end functionality.
Changed way too many things for a single commit. Added a bunch of functional tests. Invalid listing urls now display 404 page. Created 404 page. Added sell link to header. Probably some other things I forgot about. Sorry.