First steps

This PR includes a whole bunch of improvments (see commits for details).

The application is now running.

Merging