Module management and pub/sub framework for RequireJS