Add more API for elements.
getParentElements returns parents for a given id or the root nodes if no id is specified.
getChildElements returns the immediate children of a given node id.
Add the basics for scheduler API. The scheduler needs hooks to be able to interrogate it.