Add support for custom host/port on panel.js