Fixes for some improper list/binary handling when interacting with riak_core_security
New flow to abstract out recurring path_info -> check_permission sequence
* 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