Make the API listen on specified port

This borrows the pattern from alphagov/router wholesale.