Allowing the port to be both int and string

Change-Id: I0a71e4d7c6a5278acfea6e0ec1074b50ddfb1998
Reviewed-on: http://review.couchbase.org/25759
Reviewed-by: Volker Mische <volker.mische@gmail.com>
Tested-by: Volker Mische <volker.mische@gmail.com>