Creates a profile for the subtree rooted in a given node.
tree - The tree object used for determining the descendants of the
node given as subtree node. This can either be the primary or
the secondary tree.
contentfulTree - The tree object used for determinining the status of nodes.
This usually needs to be the primary tree, as in the current
architecture, node statuses and labels are only stored in the
subtreeRootID - The (internal) ID of the root of the subtree the caller wants