Update comments for support of HTTP methods, simplify code
and break up some long lines. No functional change.
Remove essentially duplicate argument 'callback' in
RestAPI.provideFunction().
Fix HTML validation issue.
Include 'sample' in SQL query and put it into a function for reuse.
Suppress notice of undefined index.
Merge branch 'master' into 'online-judge'.

Conflicts:
	www/jury/testcase.php