Added server.h, moved all function prototypes from server.cpp to server.h