Corrected a bunch of errors in the last commit

I accidently ran another replace shortly before pushing which resulted
in a lot "the the" and "server server".

Also @bjorn found a lot of other issues which I fixed here.