Bug 990047 - Add a shared function to load JSON files r=gsvelto

Add a shared function to load JSON files
and use it throughout gaia to replace the
existing ad-hoc functions