added drafts for all of the loginserver handlers, reorganized some code and prepared the loginserver for future inter-server connections