Re-factor loading profile in the streams so that I can reuse that load elsewhere. handy function.
add unit tests for -o and -lib; improve BaseTest: refactor writeFile to Utils. -o options and others not accepted by antlr().
Merge pull request #645 from parrt/test-tokens-and-imports-dir

More tests of -o and -lib for .tokens files and imports, some useful refactoring.