Require login and use regular urls.

Fixes #339 and Fixes #393

When editing plots and trees use normal URLs (i.e. /inst/plot/349/edit)
instead of hashes.