Wrap JSON.parse in try/catch
Add  field to server configuration for concurrent connections to the same host
Cleanup, fix .disconnect
Add JSDoc style comments
Support callback style
Add offline queue, update code comments