Moved all includes and defines to the top of the file.
Added dependency perl-JSON to Collection Management/Crawl Watch. Needed for the anonymous statistic module.
New routine that return the sql results as an array.
Added code to send anonymous usage statistics.
Changed cgi_error() to a general error routine for all cgi programs. Renamed cgi_strerror() to cgilib_strerror() to indicate that it is for use with the cgilib only.
Removed nosy printfs that printed debug info in cgi programs before we had had the chance to send the header.
Added better error handling. Sends correct status codes.
Skeleton code for deleting collections. Added error message to inform the user that this isn't implemented yet.