Improved xbmc addon code and communication with java client.
Improved serial communication

- Optimized serial communication for instances where it is waiting for
new data to send.
- Deprecated the RXTX implementation.