Usergroup implementation

this is the final version of the pull request https://github.com/geosolutions-it/geostore/pull/60 .
On this pull req some commits has been squashed.