Rename 'api.js' to 'request.js'.
Export function not instance.
Set 'port' when available.
Replace 'api' with 'request'.