Factor out dealing with the API server resources.
Factor out dealing with the API server resources.

mhilton/juju,Altoros/juju-cloudsigma,bz2/juju,waigani/juju,frankban/juju-tmp,frankban/juju-tmp,howbazaar/juju,wwitzel3/juju,howbazaar/juju,makyo/juju,frankban/juju,bac/juju,AdamIsrael/juju,marcoceppi/juju,bz2/juju,mjs/juju,dooferlad/juju,makyo/juju,marcoceppi/juju,perrito666/juju,sinzui/juju,reedobrien/juju,AdamIsrael/juju,cloud-green/juju,Altoros/juju-vmware,sinzui/juju,bac/juju,mhilton/juju-juju,tych0/juju,cmars/juju,bac/juju,axw/juju,mikemccracken/juju,wwitzel3/juju,marcmolla/juju,gabriel-samfira/juju,mhilton/juju-juju,cmars/juju,tych0/juju,bogdanteleaga/juju,alesstimec/juju,davecheney/juju,tasdomas/juju,reedobrien/juju,AdamIsrael/juju,mjs/juju,waigani/juju,ericsnowcurrently/juju,reedobrien/juju,wwitzel3/juju,perrito666/juju,tasdomas/juju,mhilton/juju-juju,howbazaar/juju,cherylj/juju,marcmolla/juju,alesstimec/juju,sinzui/juju,anastasiamac/juju,dooferlad/juju,dooferlad/juju,frankban/juju,reedobrien/juju,wwitzel3/juju,mjs/juju,ericsnowcurrently/juju,gabriel-samfira/juju,bz2/juju,frankban/juju-tmp,cherylj/juju,bz2/juju,waigani/juju,perrito666/juju,Altoros/juju-cloudsigma,thomnico/juju,dooferlad/juju,mjs/juju,frankban/juju,kat-co/juju,tsakas/juju,voidspace/juju,mhilton/juju,alesstimec/juju,thomnico/juju,cherylj/juju,dooferlad/juju,bz2/juju,ericsnowcurrently/juju,anastasiamac/juju,cmars/juju,bac/juju,mjs/juju,dimitern/juju,kat-co/juju,cloud-green/juju,anastasiamac/juju,sinzui/juju,macgreagoir/juju,Altoros/juju-cloudsigma,cherylj/juju,dimitern/juju,howbazaar/juju,gabriel-samfira/juju,cmars/juju,frankban/juju-tmp,perrito666/juju,thomnico/juju,alesstimec/juju,thomnico/juju,ericsnowcurrently/juju,Altoros/juju-vmware,macgreagoir/juju,Altoros/juju-vmware,AdamIsrael/juju,mjs/juju,kat-co/juju,Altoros/juju-vmware,tych0/juju,dimitern/juju,kat-co/juju,tych0/juju,davecheney/juju,voidspace/juju,axw/juju,anastasiamac/juju,axw/juju,frankban/juju,gabriel-samfira/juju,mikemccracken/juju,mikemccracken/juju,marcmolla/juju,cloud-green/juju,fwereade/juju,waigani/juju,makyo/juju,voidspace/juju,bac/juju,marcoceppi/juju,macgreagoir/juju,bogdanteleaga/juju,Altoros/juju-cloudsigma,alesstimec/juju,dimitern/juju,marcmolla/juju,dimitern/juju,fwereade/juju,mhilton/juju,tasdomas/juju,ericsnowcurrently/juju,anastasiamac/juju,macgreagoir/juju,axw/juju,bogdanteleaga/juju,mikemccracken/juju,howbazaar/juju,tsakas/juju,reedobrien/juju,makyo/juju,axw/juju,tasdomas/juju,mikemccracken/juju,cloud-green/juju,bogdanteleaga/juju,tsakas/juju,frankban/juju,macgreagoir/juju,mhilton/juju,tsakas/juju,gabriel-samfira/juju,kat-co/juju,marcmolla/juju,fwereade/juju,fwereade/juju,perrito666/juju,davecheney/juju,davecheney/juju,mhilton/juju-juju,mjs/juju,voidspace/juju,marcoceppi/juju