Added branch API method. Improved profile distribution method
Methods for querying branches and profiles