Permissions are almost working. Almost.

They still aren't actually checking right for some reason.
Merge pull request #6 from Clashnia/hqm

Permissions are almost working. Almost.