Refactored inbox detail js controller
Inbox host and port from settings