Added protocol handling (server side).
It's pretty simple, but who cares? ;)