Protocol implementation in webapp switched to protobufs (first step)

-- not buildable --