TODO
----

 * Atomise output file writing, i.e., write to temporary file then
   move.

 * Add protection against unknown fields in dump request (catch
   KeyErrors).
  
 * Proper logging!
 

DONE
----

2011-01-18

 * Query cloud status and set all queues offline if cloud is offline.

 * Change dump of lastmod  and tspace into ISO datetime in UTC.


2010-12-10

 * Restucture methods into python module, moving them out of the 
   main exec script.

2010-01-29

 * Add simple lock file mechanism to kill old instances in case
   something got stuck (important - could hold a db connection).

 * Add protection against wiping out queuedata if script fails.


