Added sources for the server. No tests yet.