Structure Changes

Improved configuration to make deployment easier. Began restructuring
core application layout for easier integration with pre-processors.
Fixed issues with Session attempting to connect to MySQL database with
sync disabled.