Added somewhat functioning GET and PUT methods for hierarchy - still have a couple of bugs, e.g dealing with null parent_ids