Found a bug with "go vet"
Fixed couple of race conditions, one can't be fixed due to bad designe

Beacon should be implemented from scratch, it had lots of race
conditions due to bad design and still has one which is hard to resolve.
Fixed a race in node, terminated should be protected by a lock
Now imports are organized, std lib packages are in the first group
Merge pull request #13 from armen/master

Mostly fixing race conditions