Log (or assert) incorrect (de)serializations (client-side).
Add const modifier.
Add checks (logs + asserts) for the validity of data received on the server.
Merge pull request #22 from Neki/topic/bf_better_network_error_handling

Better error handling for network.