Move oracle-server-ui initialization into oracle-server-ts
This moves the startup polling loop and state initialization for the oracleServer to the oracle-server-ts library and binds those values at the UI. "Any Javascript UI" should be able to use the oracle-server-ts to bind through a backend proxy and interact with the oracleServer.
Added copy to clipboard buttons on top level UI fields for public key and bitcoin staking address.

CI fails
This may not work with Node 15.x
When running npm run build inside of oracle-electron-ts on c18e60fcc891fa670ebe40c610e0b1fb17fff37c with node v16.14.0
ERROR in ../oracle-server-ts/dist/mjs/index.js 8:0-32
Module not found: Error: Can't resolve 'common-ts/index' in '/home/chris/dev/bitcoin-s-ts/oracle-server-ts/dist/mjs'
Did you mean 'index.js'?
BREAKING CHANGE: The request 'common-ts/index' failed to resolve only because it was resolved as fully specified
(probably because the origin is strict EcmaScript Module, e. g. a module with javascript mimetype, a '*.mjs' file, or a '*.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.
resolve 'common-ts/index' in '/home/chris/dev/bitcoin-s-ts/oracle-server-ts/dist/mjs'
Parsed request is a module
using description file: /home/chris/dev/bitcoin-s-ts/oracle-server-ts/package.json (relative path: ./dist/mjs)
resolve as module
/home/chris/dev/bitcoin-s-ts/oracle-server-ts/dist/mjs/node_modules doesn't exist or is not a directory
/home/chris/dev/bitcoin-s-ts/oracle-server-ts/dist/node_modules doesn't exist or is not a directory
/home/chris/dev/bitcoin-s-ts/oracle-server-ts/node_modules doesn't exist or is not a directory
looking for modules in /home/chris/dev/bitcoin-s-ts/node_modules
existing directory /home/chris/dev/bitcoin-s-ts/node_modules/common-ts
using description file: /home/chris/dev/bitcoin-s-ts/node_modules/common-ts/package.json (relative path: .)
using exports field: ./dist/mjs/index
using description file: /home/chris/dev/bitcoin-s-ts/node_modules/common-ts/package.json (relative path: ./dist/mjs/index)
/home/chris/dev/bitcoin-s-ts/node_modules/common-ts/dist/mjs/index doesn't exist
/home/chris/dev/node_modules doesn't exist or is not a directory
/home/chris/node_modules doesn't exist or is not a directory
/home/node_modules doesn't exist or is not a directory
/node_modules doesn't exist or is not a directory
@ ./middleware/download.ts 3:0-69 21:4-27
@ ./routes/proxy.ts 4:0-99 15:59-73 16:68-91 17:61-77
@ ./routes/index.ts 3:0-48 6:16-27
@ ./server.ts 33:0-40 34:26-32
webpack 5.74.0 compiled with 1 error and 2 warnings in 5022 ms
Minimum Node version is 16.15 to use fetch, which we need.
What i see when using node v16.15.1
ERROR in ../oracle-server-ts/dist/mjs/index.js 8:0-32
Module not found: Error: Can't resolve 'common-ts/index' in '/home/chris/dev/bitcoin-s-ts/oracle-server-ts/dist/mjs'
Did you mean 'index.js'?
BREAKING CHANGE: The request 'common-ts/index' failed to resolve only because it was resolved as fully specified
(probably because the origin is strict EcmaScript Module, e. g. a module with javascript mimetype, a '*.mjs' file, or a '*.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.
resolve 'common-ts/index' in '/home/chris/dev/bitcoin-s-ts/oracle-server-ts/dist/mjs'
Parsed request is a module
using description file: /home/chris/dev/bitcoin-s-ts/oracle-server-ts/package.json (relative path: ./dist/mjs)
resolve as module
/home/chris/dev/bitcoin-s-ts/oracle-server-ts/dist/mjs/node_modules doesn't exist or is not a directory
/home/chris/dev/bitcoin-s-ts/oracle-server-ts/dist/node_modules doesn't exist or is not a directory
/home/chris/dev/bitcoin-s-ts/oracle-server-ts/node_modules doesn't exist or is not a directory
looking for modules in /home/chris/dev/bitcoin-s-ts/node_modules
existing directory /home/chris/dev/bitcoin-s-ts/node_modules/common-ts
using description file: /home/chris/dev/bitcoin-s-ts/node_modules/common-ts/package.json (relative path: .)
using exports field: ./dist/mjs/index
using description file: /home/chris/dev/bitcoin-s-ts/node_modules/common-ts/package.json (relative path: ./dist/mjs/index)
/home/chris/dev/bitcoin-s-ts/node_modules/common-ts/dist/mjs/index doesn't exist
/home/chris/dev/node_modules doesn't exist or is not a directory
/home/chris/node_modules doesn't exist or is not a directory
/home/node_modules doesn't exist or is not a directory
/node_modules doesn't exist or is not a directory
@ ./middleware/download.ts 3:0-69 21:4-27
@ ./routes/proxy.ts 4:0-99 15:59-73 16:68-91 17:61-77
@ ./routes/index.ts 3:0-48 6:16-27
@ ./server.ts 33:0-40 34:26-32
webpack 5.74.0 compiled with 1 error and 2 warnings in 5179 ms
npm ERR! Lifecycle script `webpack` failed with error:
npm ERR! Error: command failed
npm ERR! in workspace: [email protected]
npm ERR! at location: /home/chris/dev/bitcoin-s-ts/oracle-server-ui-proxy
683a64b fixes the build for me.
Now when i start the electron app with npm run start, logging in seems to never occur automatically. It sits at the login screen spinning forever.

I think there probably need to be different config values to run through electron vs how I’m testing in dev. I will debug through and report back.
It seems pretty consistently I get this error in the console

This should withstand startup in Electron now.
