Rewrote functional tests to work with django sessions.