Use flattened channels structure

* The twitter application now uses the flattened channels
structure. As before, a hash of all the predicates is used to store
the source channel and its associated river