code: function escapeColons(url) {
          var answer = url;
          if (_.startsWith(url, 'proxy')) {
              answer = url.replace(/:/g, '\\:');
          }
          else {
              answer = url.replace(/:([^\/])/, '\\:$1');
          }
          return answer;
      }
docs: Escape any colons in the URL for ng-resource, mostly useful for handling proxified URLs
  @param url
  @returns {*}