MDL-42348 Atto: Fixes for id escaping so Atto works with elements with : in the id.

Quiz does this (bleh).

Also includes fixes for Atto when the repositories should not be displayed.