This commit involves some significant refactoring of tabs and permissions, especially the latter.

License information now included in permissions form -- fixes #389.