moved getApiHost to utils, both for sake of testablity && and keeping apiProxy as clean as possible.