Merge pull request #66 from mikedewar/daemon

random and count
no more race condition...
cleaning up
gofmt
large update
all routes are now formalized into a standard JSON api across blocks.

What this means is:
every time you make a block and have various fields that you would like
to change while the block is hot, all you do is send a message to a
route that calls unmarshall() or marshal() (these are probably named
incorrectly)

unmarshal() will automatically try to resolve the incoming JSON via a
route into a struct that the block can use and send a response back over
the route with the confirming that the change has been made.

marshal() will just send whatever struct back over the route.

look in ticker.go, count.go, connections.go and library.go for examples
of how this works.
gofmt i really should install an extension
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