Added tables to the web ui, some fixes, and cleanup

Removed some old, unused auth lines.
Added some commenting and doc strings.
Added table presentation to web ui pages. XSS vulnerbility is prevented
by escaping tag characters.
Changed reportwrite function to upsert changes (update document) rather
than insert (replace document) after an ObjectID error cropped up.
Replaced blank fields with blank string because fetching the fields did
not make any sense.
Prettied up the static page html.
Improved some variable and field names.
Changed table query to last N documents added rather than dumping the
whole collection.
Added a basic CSS3 style to the pages.