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