Added some fixes

Fixed compress of static files, added distinguish of used errorHandler
by environment mode. Partialy fixed reengineering at production script.