MDL-43869 Atto: id escaping so Atto works with when there is : in the id.

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