Initial server implementation.

Run with `ruby server.rb`