Fix #182 — Add invert_acls_matrix function.

r=@ametaireau
Fix #182 — Return a {tokens: permissions} for acls.