Feature/domain routing

Moved #500 to develop branch.

Todo: add reverse routing for host (in progress)