Change the way permissions are stored per role.

Instead of a list it's a dict now, eg:

```
{
    "permissions": {
        "ingest": {
            "get": 1
        },
        "archive": {
            "post": 1
        }
    }
}
```