Wrote unit tests for User and Class daos.

Found some bugs and squashed them too. Unit tests aren't useless after
all!
Abstracted out common Dao functionality.

Also minor unit test work.
Merge pull request #11 from jwien001/master

Latest Dao work