Implemented Host header check against local hostname

Server now only serve requests that are addressed to it's current
hostname (aquired via gethostname()) or hostname + "dcs.gla.ac.uk"
Fixed a bug socket bug in socket reuse code ontroduced in 4ca32f9