Attempt to move all database access to main thread.
Single rundb thread working for restarts and reloads.

 * also fixes out of order message setting of db status.
Remove redundant db calls.
Merge pull request #613 from arjclark/db-single-access-hack

cylc: single db access object