Add draft thesaurus manager UI. Refactor thesaurus services.