Extended basic server to support some additional functions and be aware of it's host domain

Added ability to host multiple domains and addresses with the single instance.
More suited for someone to now use to host a shared federation service.