Cleaned up code and redid API queries. Now use MultiPartEntities for all urls sent to CI