Combine multiple operations of the same type.
Group db opers by type prior to combining.
Improve efficiency of db_oper construction.
Fix accidental discarding of db_opers.
Fix bulk commands. Reduce frequency of commit operations.
Source profiles in detaching tasks, for cylc version selection.
Merge remote branch 'upstream/master' into rundb-combine-oper
Remove redundant variable setups.
Merge remote branch 'upstream/master' into rundb-combine-oper
Removed "ready" and "not ready" printing from clock triggered.
Added a final connection commit just in case.
Fix gcontrol tree check boxes.
Move db status updates to set_status method and ignore redundant operations.
Code tidy.
Merge pull request #624 from arjclark/fix-gcontrol-checkbox

Fix gcontrol tree check boxes.
Merge pull request #625 from arjclark/check-redundant-state-updates

Check redundant state updates
Merge pull request #623 from arjclark/rundb-combine-oper

fix delayed run-db thread shutdown
Merge pull request #622 from hjoliver/detaching-task-source-profile

Source profiles in detaching tasks, for cylc version selection.