Remove unused imports and unused variables.
Updated regions.json file to newer version.
Changed functions that build and check Android resource URI to use the
Uri.Builder instead of building/checking manually.