ActiveRecord loading.
Fixed up lots. Migrated models to AR. Cleaned up main view.