Invert the auth checking logic so it's readable
Ensure digits from json response are cast to int.

PHP, you suck.
Correctly check the user access prop for granting auth.

Also reorganize it all so it's a bit more readable.
Add explanatory code comment about access int value.
Allow 1 or 2, both valid values for the access property.
Merge pull request #1 from sdboyer/master

Fix daemon to respect 'access' prop on project user list. Which allowed maintainers without access granted to push.