Added platform parameter to API calls
Refactored the way app info is passed around