Updated parser to build a tree of headlines

* Added s:flatten_headlines to get a linear list of headlines for the
  purpose of filtering for agenda.