Implements stage deployement and cleans up other stage code; adds tests

The set roles done in these tests is already an override of the common role setting used by the test suite.  I could pull out the set_roles and set_finalized, but that isn't a particularly large line reduction.  Attempting to remove any of the further "duplicate" code would probably result in a drastic readability reduction, as each of the tests is creating a different variant of stages, tracks, and StageUrls.  Did you have a particular way of reducing in mind?