Fixes to make example.js work as well as blip

1. Fix example.js to concat the scheduled undelivereds
2. More unit tests and fixes to timeline
3. Restructure SegmentUtil a little and add method for getUnscheduled()
4. Add more information to log line in basal.js and return rather than allow it to error out