Fix bug with before load/after save for config nodes
Update server code to use 16 bit unsigned int for port numbers