(NC-138) environment on class url

This moves all the class endpoints underneath environments, as classes are members of environments.