Lifecycle application framework for node.js