Decouple creation of Fastly API client

So that task can be tested without making calls on Fastly API.
Add tests