WWW/*.php: Add per-page header comments

Issue #189.
www/lib/*.php: Add per-script header comments

Issue #189.
lib/record.php: Fix brace indentation
js/main.js: Add header comment

Issue #189.