Merge pull request #1 from sroysf/master

Test refactor and enhancement
Change license to Apache 2.0.  Reformat, etc to clean up.  Do the simple
thing on tailing stderr and stdout.
Merge from Chiral master