Fix editor bar template links

- Remote duplicated li elements in editor bar
- Fix logout link generation to be urlencoded appropriately