Move remote API client out of the core and into api/