WIP - permisisons group update

Fixes here and there to make permissions and groups work correctly. 
Updated commands syntax to be like other commands. Also updates for how cli has changed. 

Everything seems to work again, doing double checking on all commands. 
We shouldn't have this.  All ids should be strings, and this hides any inconsistencies.