Move ESM terrain data handler to esmterrain component so it can be used by the editor Feature #1597)