AGP-418: Fix logical context combinations used in typoscript

Also load TS connector only in frontend, not in backend
AGP-420: allow hyphen and underscore in aliases