Modify to handle errors.
Refactor Connection.js, ConnectionFactory.js, Node.js, and NodeFactory.js.
Modify the order of conditions of returning from a function in ConnectionFactory.js
Modify ConnectionFactory.js in order not to need to consider Peer.js
Modify to pass error when insert/retrieve/remove fail.