Refactored apps to handle its own global scope, might have to undo this
Refactored to take advantage of new do_action mechanism in ScaleUp