Added Scope class to handle parsing of scopes in request