Check prefix on startup
Summary
This merge request implements a check of the prefix before the application starts. This will ensure that there's a structurally valid prefix to work with as well as all mandatory data present.
It also does some cleanup in unused code and improve testing.
Relevant issue(s) fixed
Fixes #225 (closed)