Added Fatal() errors. Factored out server/main/. Updated server APIs.