add Agency support to code and tests

seems there might need to be some tweaking here as calling the code
with end to end script leads to errors, possibly related to either
things not being enabled at the fixflo end or perhaps some confusion
over urls (it seems the Agency endpoints are documented as using
the api.fixflo.com endpoint rather than the custom domain)