Restored server codebase; first functional draft of all APIs.