Improve URL_PARSERS in remote_server classes

- check all regular expressions in array instead of trying to do it
  based on the first 4 characters of the url.
- use named regex groups for clarity!
- rename Repository.remote_server to Repository.remote_server_for
Introduce concept of canonical urls for repositories

Particularly useful if a developer build is requested and the repository
url is in a different format than the url stored in the DB.
Merge remote-tracking branch 'public/rob/canonical-repo-urls'

R: xavier jkingdon
Rails 4.0.3

contains security patches that should not be relevant to Kochiku