Bug 990047 (1/2) - Add a shared function to load JSON files
                   and use it throughout gaia to replace the
                   existing ad-hoc functions