Refactor json validator

* Changed the rest of the exception raising to use the _assert_validity
  function.
* Introduced minimum set of required  names secret refs in containers.
  (for both rsa and certificates).
* Added tests regarding these required names.

Change-Id: I31d8f254674a601cb241a7ad1bd1696d6baab3aa
Merge "Refactor json validator"