application: Move some functions from main.c

These are supposed to be run only once in the main application instance.
Let this be run in application class so that non-registered instances
wont run them.
8 jobs for master in 10 minutes and 5 seconds (queued for 2 seconds)
Status Job ID Name Coverage
  Build
passed #270505
librem5
build-debian-gcc-bullseye

00:02:36

passed #270504
librem5
build-debian-gcc-buster

00:02:29

 
  Test
passed #270507
librem5
check-po

00:00:37

passed #270506
librem5
test:debian-gcc

00:01:41

 
  Package
passed #270508
librem5
package:deb-debian-buster

00:01:21

passed #270509
librem5:arm64
package:deb-debian-buster:arm64

00:04:15

 
  Test Package
passed #270510
librem5
autopkgtest-debian-buster-package

00:01:30

passed #270511
librem5
lintian-debian-buster-package

00:00:47