added per-endpoint scopes
Merge pull request #5 from hobofan/master

added per-endpoint scopes