This commit moves some functions that are used in both App and Worker.
Also renames CommonMailUtils to SharedMailUtils.ts because there share
functionalities between both apps and creates a new file CommonMailUtils
to store functions that are common between app and worker.
two ways this can happen:
* starting on old domain
* starting on new domain
in each case, the starting tab opens the other domain in a new
tab to then use window.postMessage to transfer the credentials.
Split dist.js (desktop.js, webapp.js)
Simplify command line interface for dist builds
Extract utilities used from dist builds
Extract fetching and publishing dictionaries into its own build step
Extract signing installers into its own build step
Extract .deb packaging and publishing into its own build step
Add some documentation, verbosity and general improvements to the code