Asynchronous dependency and lifecycle management for Node and the browser