Implementing basic PermissionsAPI, needs work and testing.
Please call PermissionsAPI instead of APIHelper in future.