Merge pull request #60 from nikhan/daemon_arch

rules, routes!
tidying, lots of comments
got the broadcast sorted
adding library json