Created the Index page, reading from the competitions api and displaying information.
Code clear up.
Added common.js to hold common code snippets.
Cleaned up the index page a bit. We now can choose the competition.