Add Stage class and stagemanager.js module.