chunkserver: New register messages and communication with master

This commit introduces more object-oriented packets handling in communication
between chunkservers and master server. It also adds and uses new messages for
registering chunkservers in master server.

Change-Id: I551c96493026303341a24d6694159f6636541dc4