Fixes and improvements to Server, Overlay

Tidying up some loose ends.
const std:string&