Replaced deprecated functions-automagic with API implementation

Resolves tracker [#1471].  This change also updates the deprecated
http_port mode used in the API [tracker #1590].