Moved the server functions in their own namespace, in the wait for making a true server class.