Remove the exposing of java Buffer and RecordParser by provide js object...

...s

* Rework Buffer to be a real js object and so remove methods which make no sense in JS
* Create RecordParser object and so hide the java one