separated api calling functionality
reorganized api calls into sdklib modules. removed unused imports