add streaming mmd, refactor linear time mmd
Merge pull request #1959 from lambday/feature/btest

add streaming mmd, refactor linear time mmd
Issue #1955; change loglevel through environment variable