relay: make server batch and queue size configurable

Based on a patch by Ian Lai, added -b and -q flags to configure batch
and queue sizes.  Cleaned up some interfacing to always push down both
arguments to server creation.