Added server_quit function, and finished some more functions.