Less middleware refactorings
Css bug fixes
Adding global MODE for enviroment