Server - removed globals, opt for Moo attributes instead

/cc @yegg @russellholt @nospampleasemam 

Purely a syntactic change. We use Moo elsewhere so I've opted to remove the globals I introduced and switched them to Moo attributes.

Again, this introduces no functional changes/differences.