Dev/70/alex hierarchy

This works out the hierarchy of branches and exposes them correctly in the API.

``get_feature_info`` needs to be written in the github provider.