Move "Logout" to right on student pages.
Added some indexes to potentially speed of searches.
Fix bug with application.