Fix for Issue #174
Retreived savedRequest from spring security and parse language out of the url.
Added another fix where if we cannot get the language from the spring security then we can use the referer.