Add init() for js components, better time format

Javascript components (map, scoreboard, eventlog, graphs) now have an
init function (in addition to the update function), so initialization
code can be delayed until after shared code is defined in
init.js.coffee. Time formatting has been improved and shared across
components.
First attempt at adding google analytics