Permission module migrated to jquery/bootstrap, refs #1214

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| Refs tickets  | #1214
| License       | MIT
| Doc PR        | -

PS: This was really a big work