Validate VM metadata on create/update server and server metadata

* Check for VM max metadata items when updating/creating a single item.
* Check the length of metadata items when updating metadata items.