api: allow configuration of listen addr and port

Signed-off-by: Dan Mick <dan.mick@inktank.com>