[#24] Refactor preferences JS again
[#24] Refactor preferences JS again

* Use switches in generic functions so we can bind multiple types of inputs with a single method
* Explicitly declare the inputs that should pass their values directly through to the config

trezy/eidetica,trezy/eidetica