Allow all cross-origin requests
Update srcomp for last_scored_match when no scores fix.

Change-Id: I9dfab576d2f2aff0cfbe37898b72de8b6333cdb0
Fix doc comment.

Change-Id: I64c0cb4abcc557a47d587affd0c235b2f1e2c78a
Also expose all matches grouped into periods.

This is going to be used on the schedule page, where the matches will
be similarly grouped for sanity.

Change-Id: Ie3e1ad26540f22ae172adc58649e986fa36598e4
Rename root key for matches by period.

'preiods' fits better than 'matches', since the items in the list
aren't actually matches.

Change-Id: I84a25904a09fb068424a6f2cc15176e514c0ffe7
Use UTC internally

As per commit d0a253351dc89d7e8ecae9ac147be4cd5f69d05a of srcomp, this
changes all uses of 'datetime.now()' to 'datetime.utcnow()' to make sure
the dates used internally are UTC.
Return an error object if the match is None
Remove the knocout/max_entrants endpoint

I'd completely forgotten that _all_ the teams are in the knockouts,
not just a subset of them. As a result, this endpoint is pointless.

Change-Id: I38e55af114453cbb50ea4462761577d3de7fa7f8
Bump srcomp module for knockout info and state compatibility

Change-Id: I7c6360a2561c32a3bde66e6ebe59e5d37bf76cd2
Remove test for knockout/max_entrants endpoint

It was removed in a6bed0af2dfbf65591c, oops.

Change-Id: I6a1565aee4cc0048886084418d438465e0059f2a
Bump srcomp for knockout matches in the periods.

Change-Id: Id46bc10a2867fd4b8c38e3600b5195493ebcf6a6
Fix typo in comment.

Change-Id: I2f16733ce4704b43385a7bdb0948a891fcf2d758
Add an endpoint which describes the knockout matches.

This preserves the grouping by rounds that the scheduler uses. This
allows the consumer to easily display the matches similarly grouped.

Change-Id: I21b03b854a620098532ebf6bf81084bdf6980241
Avoid some looping, add comment for clarity.

There's no need to check all the arenas -- as soon as one has knockout
matches we can assume they all do. The change here doesn't really
affect that logic as we're still only checking one match. We now
only check the first match we find, not the last.

Change-Id: I7e9f845e6997735116ccb63d82afe76f8980ff7d
Bump srcomp to pick up match_after fix.

Change-Id: If16346740fb4ba97251735564a5cd671e342ba6a
Bump srcomp for various knockout related improvements.

Change-Id: I49386eb89fad47152b158aeb2663b93f42b5e002
Fix property access.

namedtuples aren't dictionaries.

Change-Id: Ib0b27cc70439194a0d4eda4c485a3fdd010c7037
Add a /state endpoint.

This will emit a short description of the current state, specifically
the git revision. This is useful so we can see which revision is
actually being used, and also potentially to reduce the http polling
that occurs.

Update test setup to include fudging the path of the gitdir in the
temporary copy of the compstate repo used.

Change-Id: I0b5afc29c1f8dc09cc79be16977932a453a27d33
Use timezone-aware datetime objects

All srcomp's datetimes are now timezone aware (or should be!).  Naive
objects can't be compared to aware objects.
Remove time based information from /matches/knockouts

It never really fit here, and the logic was flawed anyway. Add a
type attribute to the match info blocks returned to enable the front
end to work this out via other means.

Change-Id: I7683ea2f64f52b7b9ba4251fb6b9e6e341034859