Cleanup: Use urlresolvers.resolve in captcha middleware

This is a change from https://github.com/evernote/pootle/commit/a76f657