Implemented context class resolvers.

Closes #420
Moved ContextClassGenerator into Context\ContextClass namespace
Renamed all occurencies of classname into class to enforce consistency
Renamed variables in ClassGenerator interface to make things clearer