Added cli/server components of node_register
Added a test for duplicate node_register calls.

These should throw an error, and they do.
Merge pull request #128 from zenhack/node_register

Node register