Merge pull request #63 from mikedewar/daemon

:+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1:
Merge pull request #65 from nikhan/daemon

working version + lots of cleaning & simplifying
NewBlock returns an error if it can't find the block in the library; added random block
random and count
count
Merge pull request #66 from mikedewar/daemon

random and count
no more race condition...