Fix return type in SharedNegotiator::negotiateBest.
Added Language negotitiation, tests.