register LanguageTypeRuleDefinitionHandler

- can register custom language sourceset

+review REVIEW-5317
add some more test coverage for LanguageTypeRuleDefinitionHandlerTest

+review REVIEW-5317
some cleanup on rule definitionhandler tests

+review REVIEW-5317