Add JsonPatchType class

This patch adds the JsonPatchType class for API parameter validation with
WSME. This class will be used to replace some of the custom validation
functions we have in the api/utils.py.

Change-Id: I233cd273854eae5ed4d8856d4af3e2f8e2309dce
Partial-Bug: #1223847