server: when making a server, the raw_fn should be optional

If you don't provide one then you get JSON over HTTP. This should
be the default.