Refactoring remote cache functionality.
Refactoring remote cache functionality.

Moved the implementation to the top-level of the module so that it doesn't
clutter the `fetchAndInstallJxCoreCordovaPlugin` function.

Later on, various parts of the `install.js` file could be moved onto separate
modules so that they could be developed and tested independently.

thaliproject/Thali_CordovaPlugin,thaliproject/Thali_CordovaPlugin,thaliproject/Thali_CordovaPlugin,thaliproject/Thali_CordovaPlugin,thaliproject/Thali_CordovaPlugin