Started on multiple database functionality

- Added a fairly generic logging system
- Started working on supporting multiple databases
- databases.conf file is in JSON format