Moved HTTP operations to API class
Total code restructure

* Modularized classes
Merge pull request #9 from benschwarz/modularize

Modularize all the things!