Added Read Event Dispatching

Implemented read events for incoming data. Javascript function
registerReadCallback() will register a callback that will be called
when data is read from the serial device.