beginning to build a library of functions to support modularity
started adding everything in modular fashion.

Things do not currently work. Streaming has some quirks and I am not yet
ready to commit to a general query structure yet