Add Boxfile to support PaaS for pagodabox.com
Fix the spaces in boxfile
Add db setting for pagoda
Remove config directory from writable directory
Update installation script to allow predefined DB settings

For the PaaS, settings are read-only, the DB settings has to be
predefined and using the environment variables.
Update to mysqli connection
Rollback to mysql driver
Debug mysql connect
Remove var_dump
Move installed.txt into TMP directory

So we can remove writable access to app/config directory and have all
the write access within TMP directory
Add guard config file to boxfile
Update boxfile
Update boxfile
Update boxfile and add system test case
Update bootstrap for constant
Merge branch 'pagoda' into dev

Conflicts:
	app/config/bootstrap.php
	app/config/routes.php
	app/controllers/install_controller.php
	app/controllers/upgrade_controller.php
	app/tests/cases/system/login.test.php