Modified getTree() to support options (like context) as getChildIds()/getParentIds()

This is just for convenience that we don't have to set a context via ```$modx->switchContext('contextname')``` before using ```$modx->getTree()```