Fix acl screen layout

This branchs changes the layout of the entity ACL (whitelist/blacklist) screens to use a clear table rather than a list.
Compare before http://goo.gl/bLdkZ5 and after http://goo.gl/bJw0K5

In he process, I also reworked to way this lis/table is built in templates/editentity.php: rather than having 4 separate flows for blacklist and whitelist for read-only and read-write, these are now all build by the same code.

For dynamic sorting, the jquery tablesorted (http://mottie.github.io/tablesorter/docs/) is used, which is dual licensed as MIT/GPL.