Provide class based template as well as method based template

Topcoder solutions generally expect a class based template for solutions. This pull request adds support for both boilerplate generation for a class based template for Topcoder problems and extends support for testing class based templates as well.