Breaking bug fixes

> Fixed bug which made handshake requests and responses have empty
payloads;
> Fixed bug which caused peer list population to fail - it seems lists
cannot be accessed as arrays even if indices are within capacity.

Former was due to not seeking to the beginning of the stream before
assigning as payload.
It was easily fixed by using another overload which is specifically
designed for this problem.