#111 and #128. Changed entity_load() to watch for the new entity cache and expiration settings.
Merge branch '7.x-1.x-alpha' into 7.x-1.x-alpha-issue-128
Changed theme_link() to iterate over the variables options and build them into a json string, rather than manually building the json string. Remember JSON.stringify() doesn't work here.
Fixed #128. Fixed #111. Added drupalgap.page.options to hold onto any drupalgap_goto() page options. Changed drupalgap_goto() to watch out for reloadPage than save it into drupalgap.page.options as reloadingPage. Moved all the local storage logic when attempting to load an entity via entity_load to its own function, _entity_load_from_local_storage(). Changed entity_load() to use _entity_load_from_local_storage() and to only save the entity to local storage if entity caching is enabled.