Changed public API, changed sink package, and added java unit test to ma...

...ke sure Java API is callable from Java.
Java API should return JavaReceiverInputStream, and cannot use Seq in the params as Java does not have Seq.