Cleanup the code.
Inject ctrl4x, getURL and delegate into controller.
Store the language in the cookie.