Fixes for some improper list/binary handling when interacting with riak_core_security
New flow to abstract out recurring path_info -> check_permission sequence
Fixed grant commands.

The 'on' and 'to' should not be capitalized.
Fixed badarg when a user is disallowed.

The return from the error is a binary when disallowed, so trying to do
list_to_binary/1 on it is a problem.
* Be more explicit with function naming to make "true"/"false" more intuitive
* Fix resource argument names per @Z
* Drop check for integer, dialyzer doesn't seem to care
* Simplify path for current use case, thus only one extra function
Merge pull request #363 from basho/jrd-fix-perms

fix security code

Reviewed-by: rzezeski
Merge remote-tracking branch 'origin/develop' into bug/mw/security-fixes
Merge pull request #362 from basho/bug/mw/security-fixes

Fixes calls into security

Reviewed-by: rzezeski