Configurable get_domain added.

This changes allow project's users to define ther own way to get_domain,
freeing them to use django sites framework.