Potential fix for #1073: installer issues

- App_hooks (especially pre_controller hooks) need to check for a
database connection before loading the settings library.
- CodeIgniter was not looking in the correct location for the install
controller (bonfire/controllers).
- Installer is still a little rough around the edges.