Server communication updated.

Added the ability to send a capsule with given fields to the server.