segments now know what branch they are
adds new segments by clicking the arrows
adding branch index to segments
segments now have an index attribute that's created before create
Segments now have methods for finding their ancestors and descendants
misc fixes
the json route now returns a complete branch