Merge pull request #33 from anchor/wip-replace-stm

Replace usage of STM with MVars, along with a dramatic cleanup of the Daemon code.
Merge branch 'master' into 'wip/remove-thread-mess'