Some protocol updates

This provides slightly better checks in the protocol.
* First it makes sure it reads the proper amount of data.
* Additionally, not all API commands seem to return 3 parts, e.g. /queue/simple/getall