Un-plugged coordinate/HSL API retrieval parts.

Laid some skeleton for refactoring HSL API access part.