Replace per-mapped permissions by per-project permissions. Part of #66