Added API call

Added an call to the JSON API to load the initial app data and stored it
in a global variable that's not yet used for anything.