Fixes issue #377, where a source cannot generate a new codename if their
collection is deleted by the journalist while they are still logged in.
Redirect to the proper URL for endpoints which require login
Merge pull request #378 from Hainish/issues/377

Fixes issue #377, where a source cannot generate a new codename if their