Lightweight node.js connection wrapper