Clean up stream handling

Some changes regarding stream handling:
- OggInputStream: close the underlying stream
- Ogg: close the OggInputStream stream
- StreamUtils: added copyStreamToByteArray  methods
- Wav: use StreamUtils.copyStreamToByteArray 
- NetJavaImpl: use StreamUtils.copyStreamToByteArray