Make TAP-Y/J parser work on streaming input

This works for JSON so far, but `scanYAMLDoc` needs to be implemented for YAML to work. Look for that in another commit on this pull request.