Make editor disappear after a successful save

After changing the back button behavior, the editor would reappear after
saving an edit. This prevents it.

Also make Router use an object for routes so that subsequent Router#route()
calls don't add duplicate entries.

Change-Id: I85c3613c789f65883b7ad470d15571a11b0b14d0
Merge "Make editor disappear after a successful save"