refactor: group options-related logic in //src/common/options

Change-Id: Ib505da278accd878478399967efd72c8d89095ce
diff --git a/src/common/architecture/dependenciesProvider/DependenciesProvider.ts b/src/common/architecture/dependenciesProvider/DependenciesProvider.ts
index 221cc51..68f77fd 100644
--- a/src/common/architecture/dependenciesProvider/DependenciesProvider.ts
+++ b/src/common/architecture/dependenciesProvider/DependenciesProvider.ts
@@ -1,6 +1,6 @@
 import ExtraInfo from '../../../features/extraInfo/core';
 import AutoRefresh from '../../../features/autoRefresh/core/autoRefresh';
-import OptionsProvider from '../../OptionsProvider';
+import OptionsProvider from '../../options/OptionsProvider';
 import WorkflowsImport from '../../../features/workflows/core/communityConsole/import';
 import Workflows from '../../../features/workflows/core/communityConsole/workflows';
 import StartupDataStorage from '../../../contentScripts/communityConsole/utils/StartupDataStorage';
diff --git a/src/common/architecture/features/Feature.ts b/src/common/architecture/features/Feature.ts
index e1a3389..76f5990 100644
--- a/src/common/architecture/features/Feature.ts
+++ b/src/common/architecture/features/Feature.ts
@@ -1,4 +1,4 @@
-import { OptionCodename } from '../../optionsPrototype';
+import { OptionCodename } from '../../options/optionsPrototype';
 import Script, { ConcreteScript } from '../scripts/Script';
 
 export default abstract class Feature {
diff --git a/src/common/csEventListener.js b/src/common/csEventListener.js
index 393f5f7..353f463 100644
--- a/src/common/csEventListener.js
+++ b/src/common/csEventListener.js
@@ -1,7 +1,7 @@
 // In order to pass i18n strings and settings values to the injected scripts,
 // which don't have access to the chrome.* APIs, we use event listeners.
 
-import {getOptions} from './optionsUtils.js';
+import {getOptions} from './options/optionsUtils.js';
 
 export function setUpListener() {
   window.addEventListener('TWPT_sendRequest', evt => {
diff --git a/src/common/mainWorldOptionsWatcher/Server.js b/src/common/mainWorldOptionsWatcher/Server.js
index efa5438..eca2955 100644
--- a/src/common/mainWorldOptionsWatcher/Server.js
+++ b/src/common/mainWorldOptionsWatcher/Server.js
@@ -1,4 +1,4 @@
-import PartialOptionsWatcher from '../partialOptionsWatcher.js';
+import PartialOptionsWatcher from '../options/partialOptionsWatcher.js';
 import MainWorldContentScriptBridgeServer from '../mainWorldContentScriptBridge/Server.js';
 
 // Main World OptionsWatcher server (used in content scripts to be able to serve
diff --git a/src/common/Option.ts b/src/common/options/Option.ts
similarity index 100%
rename from src/common/Option.ts
rename to src/common/options/Option.ts
diff --git a/src/common/OptionsProvider.ts b/src/common/options/OptionsProvider.ts
similarity index 100%
rename from src/common/OptionsProvider.ts
rename to src/common/options/OptionsProvider.ts
diff --git a/src/common/optionsPermissions.js b/src/common/options/optionsPermissions.js
similarity index 98%
rename from src/common/optionsPermissions.js
rename to src/common/options/optionsPermissions.js
index 2fa298b..f005131 100644
--- a/src/common/optionsPermissions.js
+++ b/src/common/options/optionsPermissions.js
@@ -1,5 +1,5 @@
-import actionApi from './actionApi.js';
-import {optionsPrototype} from './optionsPrototype.ts';
+import actionApi from '../actionApi.js';
+import {optionsPrototype} from './optionsPrototype';
 import {getOptions} from './optionsUtils.js';
 
 // Required permissions, including host permissions.
diff --git a/src/common/optionsPrototype.ts b/src/common/options/optionsPrototype.ts
similarity index 100%
rename from src/common/optionsPrototype.ts
rename to src/common/options/optionsPrototype.ts
diff --git a/src/common/optionsUtils.js b/src/common/options/optionsUtils.js
similarity index 98%
rename from src/common/optionsUtils.js
rename to src/common/options/optionsUtils.js
index 652f9e8..055e46b 100644
--- a/src/common/optionsUtils.js
+++ b/src/common/options/optionsUtils.js
@@ -1,5 +1,5 @@
 import {grantedOptPermissions, isPermissionsObjectEmpty, missingPermissions} from './optionsPermissions.js';
-import {optionsPrototype} from './optionsPrototype.ts';
+import {optionsPrototype} from './optionsPrototype';
 import specialOptions from './specialOptions.json5';
 
 export {optionsPrototype, specialOptions};
diff --git a/src/common/partialOptionsWatcher.js b/src/common/options/partialOptionsWatcher.js
similarity index 100%
rename from src/common/partialOptionsWatcher.js
rename to src/common/options/partialOptionsWatcher.js
diff --git a/src/common/specialOptions.json5 b/src/common/options/specialOptions.json5
similarity index 100%
rename from src/common/specialOptions.json5
rename to src/common/options/specialOptions.json5