/download by referer working

Though /download needs testing again
Fixed anon initial create

Note that somehow template.url did not include the /1 revision - seems to have been like that for some time. I'm not sure how it ever worked - but might explain the double save I've seen in the past.