early refactoring changes in backend, database related classes moved into db package, methods used for obtaining similar formulas are in separate class now.
added tests and some fixes in old one
fixed relationships in domain model
added automatic header and footer include in jsp page
added some required dependencies