Cleaning up flash messages and app organization

Makes the flash messages use the ticket number formatter and as a result moves
that method to the application controller so it becomes available to both the
controller and the views.

Also has a long-overdue update of schema.rb due to the removal of the AdminUser
a while back.