refactoring dns/ldif import only one class, added auto template loading