Support READ statement. Add Apache license.

Major improvements to support READ for stdin, files and internal files.
Fixed some bugs, new NSIL tests passing.