KCC: move ldif import/export functions into their own module