add permission changes for multitenant
Merge branch 'rc1' of github.com:WSO2Mobile/mdm into rc1

Conflicts:
	modules/device.js