Copied changes to app, util, and gloo from scenegraph branch

Let's try to address any problems in this PR before merging the scenegraph branch.

Presently, this seems to break the fireworks demo and one test in app/tests/test_app.py