Initial commit with refactored mmcfe source

Breaking commit. Current version is non-functional.
Started refactoring all logic in BL classes.
Started refactoring of HTML layer.
Camel-casing of class & function names.
Removal of global variables.
Started refactoring of all magic numbers into settings.