Cleaned up source a bit, added comments and some design notes, nothing set in stone.  Added initial draft of DatabaseWrapper interface.