Merge pull request #67 from nikhan/daemon

it's a big one: fixed race condition and added JSON api for blockroutine routes
bunch block
comments
a bit more detailed logging
got bunch working
Merge pull request #68 from mikedewar/daemon

bunches
merge