add endpoints view for segments
flesh out some segment model methods. Add framework for authentication. improve info page dynamicism