Added JSON fetching/setting functions

Added methods to create an API request URL, storage Petfinder data to localStorage, and retrieve from localStorage or Petfinder API if expired.