Minor refactoring
Preparing for branch switch
Added messages module to the database dll
Major update - lots of new features + refactoring and bug fixes