Implemented context class resolvers.

Closes #420
Moved ContextClassGenerator into Context\ContextClass namespace