Cleaned up the jquery plugins, and split up databaseHandler into siteManager and databaseHandler to divide functionality more logically.