Changed postreply route and tidied up the server