Refactored code which decides if Base classes should be generated to be more readable/maintainable
Added TagComponent class so that Component doesn't need to know specific details about JSP component generation.