Previous url

Saves the previous URL in session. this URL is accepted if it's on the same host or, if we use a domain by lang if we find a lang with this domain.

This PR is related to #477 #429