Minor refactor in navigator
Minor refactor in navigator

In navigator.updateState we need to update the navigators id before
we replace the state, as is this triggers an event - listeners might
already want to see an updated state.

PonteIneptique/arethusa,fbaumgardt/arethusa,Masoumeh/arethusa,fbaumgardt/arethusa,latin-language-toolkit/arethusa,fbaumgardt/arethusa,alpheios-project/arethusa,alpheios-project/arethusa,alpheios-project/arethusa,Masoumeh/arethusa,latin-language-toolkit/arethusa,PonteIneptique/arethusa