Hoist appview events tests and sandbox stuff out of #initialize block
Prevent constructed props tests from polluting mocha sandbox
Expose isInSidebar on AppView object
Parse sidebar URL query and decide we should render in a panel or not