code: function (resource) {
                      validate(resource);
                      var rel = Object.keys(resource)[0];
                      home[endpoint] = home[endpoint] ? home[endpoint] : {};
                      home[endpoint][rel] = resource[rel];
                  }
docs: @ngdoc function
  @name w20CoreHypermedia.service:HomeService#register
  @methodOf w20CoreHypermedia.service:HomeService
  @param {Object} resource a json-home compliant resource declaration
  
  @description
  
  Register a new home resource