Partially remove AC auth
Move auth code to serverauth.h
Remove mastertype
Backport server registrations
partially backported auth
Fix custom master server ports