Fix Some API For Improving Usability

There was a difficulty to register close handler on websockets because Void type is different with Unit type.
So, added fntoVoidHandler Conversion and closeHandler method with Function

There was difficulty to use Shared data in scala because that was java collection.
So, fixed that getMap and getSet return scala collection in using JavaConverter