Make sure that we always default redirect to the public webinterface
and only redirect to team if the 'team' role has been set, not when
the user has the superset role 'admin'.
Add problem ID to problem list, fix spelling.
Fix tab indentation, trailing whitespace, minor code layouting.
No functional changes.
Move DOMjudge-native checking of username/password to separate function.
Put roles query into separate function
Refactor API to single endpoint and use of DOMjudge permissions system

Because we now have global users and permissions in DOMjudge, move
the api to a single endpoint www/api/, doing away with www/jury/api/.
The API will now use DOMjudge's roles to decide who may access it.
An API function can define which roles may access it; define none
to make it public; admin may access any.

Change specification of the handler from using rewrites to using
path_info. This means we can make it work with a single Alias line
in Apache and can do away with .htaccess files.

Authentication happens in one of two ways: firstly, based on an
already authenticated user. If that's not the case, the caller can
pass a username and password via HTTP Basic Auth which will be
checked against DOMjudge database (regardless of configured auth
scheme).
Update libboost m4 snippet to latest upstream version.
Add testcase rank to download filename of team output.
Throw error when syslog is requested but cannot be opened.
Also urlencode already base64 encoded file contents, since
base64 contains / and = characters.
htpasswd-jury is now obsolete
Add HTML charset declaration in header (as suggested by W3C).
Remove trailing whitespace and break a long line.
Fix cancel button in case of 'add' which does not supply referrer in GET
Some HTML validity fixes
Move diff generating code to before checking for TLE or runtime error
to allow the jury to see a diff up to when the submission ran.
Allow specifying soft:hard cpu and wallclock time limits to runguard.
Setup hardcoded soft:hard timelimits. This is WIP code and should be
made configurable.
Detect hard CPU-time limit.
Globally define $pagename in init.php and use it in addForm() when
refering to page itself. Also replace empty pagename in have_printing().