server: fix issue with url resolving when server runs inside basisjs-tools
extract: improve l10n markup token processing