split the server up int subapps and give it a config

this way the server now can host multiple repositories and is easier to reconfigure