Added first version of server code.