Use dynamic urls for plugins

The plugins block in main.scala.html is increasingly
cut-and-pastey and this makes it worse, but this does
fix the problem with not remembering the current code
url.