Close most db handles explicitly
Let vv proc do as much as possible without priv DB connection

Adding a couple of try blocks around the ocat and axafapstat access
routines will allow this code to work for an unpriviledged user to
get some VV residuals.
Remove runasp code from mica
Add a method to ignore bad/broken asp_l1 data
Save state in report db even for no-cat obsid
Add parsing of disabled dither to starcheck parser
Add support for dither=OFF to report template
Fix report template div logic for ERs near top

Closing the div in the target block should bring over the
"links" box (it was being pushed over to the right by the
fullwidth div).
Remake database connection if not connected
Improve error handling and logging

Set the process method to have an 'update' mode to rerun reporting
as requested but skip on errors.  Save errors to files in per-obsid
error directories and in the processing status database.
Open file handle closer to its use
Set update() to use process()

Process will handle/skip bad obsids and log, and now has an update
mode.
Make a stub page for obsids with processing errors

These changes also eliminate use of the separate obsid.ERR
directory for tracking and use a file called 'proc_err' in the
output directory as the simplest indication of processing failure.
Add a mode to retry failures
Merge pull request #60 from sot/proc_fixes

mica.report processing fixes