Jamie H - Moved a bunch of TODOs and FIXMEs to github's issue tracker. Added a few new files for database logic. Removed some commented out code. Adding tests in preparation for patch 1.4.1.