Added command line flag for domain
Backend now determines the hostname by subtracting the domain
Refactored both main functions into own file
Refactored Backend
refactored web component