hide undesired wiki editing options for ad-hoc space
fix ad-hoc space JS so that it works

- needed to include utils since they're not a global; they're inside the closure
- use onElementRendered since all of the targeted selectors are created after an ajax event
- wrap everything in an IIFE, like a gentleman
fix onElementRendered

The setTimeout callback needs to call utils.onElementRendered since onElementRendered isn't a global