update code to work properly with timestamps for heroku
some general code cleanup
update contest view, some model cleanup