[API,STATSD,WORKER] Bug fix: Use int port numbers.

The python-gearman code requires the port to be an integer,
not a string.

Change-Id: If0e180e797549abfec67382968d525a0d6054db5