Minor bug fixes and minor refactoring. Race index view is more or less complete. Race details view still remaining.