Issue #1798724 by andreiashu, Albert Volkman, alexpott: Convert drupal_js_cache_files() to State system.

PR for https://github.com/backdrop/backdrop-issues/issues/211
Replacement PR for https://github.com/backdrop/backdrop/pull/301