Refactor config file. Add server.json example.