Add command to write value

This writes a value as payload of the item. This is using the inner
format, which is encrypted and not visible to the server. It still
is a standard format to allow for easier client implementation.