Add unit testing of webserve.py

Broken out from my peewee db change, this adds unit tests for webserve.py file.

- Adds the testing hooks for cherrypy in cptestcase.py (snagged from the interwebs)
- Adds database fixtures and a process to load them before each test case


I'd like to add a bunch more tests but I'm unsure how you'd like to proceed with these?  One large pull requests or lots of small ones (and if lots of small ones how to do that).  Any guidance appreciated.