Semi-port of CodeIgniter / Laravel to Node.js