Fixed bug which caused the real mapId to be shown in readonly view
Rest-ified the backend api