Fixing failing tests because ?locale= is appended to the end of the URL.

Switching from assertEquals to assertContains to be more flexible when
extensions like Translatable add query vars at the end of the links.
Merge pull request #2785 from halkyon/cmsmenu_test_fix

Fixing failing tests because ?locale= is appended to the end of the URL.
Fix Session::set_cookie_domain
Merge pull request #2788 from MarcusDalgren/session-cookie-fix

Fix Session::set_cookie_domain