* https://github.com/jambonz/jambonz-api-server/issues/371
Implemented view_only permission feature
* calling prepare-permissions in create-test-db.js
* check if there is only 1 permission and if it is VIEW_ONLY then consider user as read-only user
* setting is_view_only flag for view user by userid
* feat/367 added support for name query parameter for getting application by name
* feat/367 - Updated test case and modified retrieveAll method to make name independent of service_provider_id and account_sid
* updated query to use WHERE 1=1 to avoid whereFlag variable
* feat/367: removed empty line added accidently