Test coverage, misc tickets

Brings our test coverage up to almost 100%,  added selenium to the apps setting in Settings.py so that selenium tests get run when the manage command is run, fixed a few other misc tickets as described in the individual commits.