code: function getChildResources(resource){
          var result = [], children = _resources[resource].children;
          children.forEach(function (child) {
              var childReturn = getChildResources(child);
              childReturn.push(child);
              result = result.concat(childReturn);
          });
  
          return result;
      }
docs: Returns all child resources from the given resource.
  
  @param {string} resource
  @return []