PHP Library for managing a cascading tree datastructure