Fix deps not being built before the dashboard build.
Uses a simple and a bit crude way to allow some variables to be configured after the bundle is built, inspired by import-meta-env. It uses the same method but a bit more crude and specialized, advantage is that we don't need node at runtime.
Improvement on how we load some configs so that they can be analyzed and removed by terser (used by vite internally). Particularly keycloak/stub authenticator, all the admin and custom tabs components can be removed from the bundle if they are disabled.
Some fixes and improvement to the build script.