ScopeMixin and longer scope storage

Required as move to namespaced resources with scope lines that could
exceed 250 characters.