Migrated to CodeIgniter

Migrated the application code to the CodeIgniter framework. Still very
rough and lacking in even basic functionality or design.