Feature permissions

This branch can be deleted after merge, it adds the permissions form for analysis.