Moved activate test to check that the e-mail address in question is actually in Redis
Added a tests.py file for lib/ this is to remind me to write tests. Also fixed up some things in the auth views which should help with issues seen over the weekend