Backend refactoring

Merged Vegard Murvold Sporstøl requested to merge Backend-refactoring into master

Finished backend refactoring and additional tests

Merge request reports