Fixed parsing bug.
If multiple messages were sent at the same time, only the first was parsed by the PiClient.
Fixed NullPointerException when getting the message class.
Added a simple data structure to keep the history data unique and ordered.