Remove some debug.  Make sure ios orientation can be accessed before the stage is created.  Allow opaque background to be set explicitly