Improved permission system

Hi guys,

This pull request is to improve the current role system. It adds the concept of groups, the permissions are per group instead of per user. A new feature has been added and it's the ability to filter what tables a group access, if you don't want to filter them you can just put an asterisk as wildcard.