added a paramater in Config in order to store the domain name (note it's certainly hackish in case we have a website that can be accessed using several name)
added some new functions that will ease unit testing:
started to implement some unit tests