refactoring to support multiple platforms
Merge pull request #29 from apigee/USERGRID-2556

refactoring to support multiple platforms