removed a bunch of debuggery
added comments, and added MAINTENANCE flag
renamed SYS_DIR and APP_DIR config directives to make them less like SYSDIR and APPDIR; added proper MAINTENANCE mode handling.