Removed Spring injection for MongoDB - turned out to be shit. Refactored class names to better reflect the new structure with Function Library and DAO classes added. Cleaned up various parts of the code.