Api abstraction

Felt really good to delete those lines of code. I'm holding off on the http adapter because that one is a bit quirky.