Fix in parsing for inexistent domains part.
Rewrote routing system according to ideas in http://blog.tymoon.eu/article/288