Added validation and json  output for mqtt
Validtion pattern
Added json validation
Added support for Application in tenant proxy and api
refactoring