Alibaba will buy all remaining shares of mobile browser UCWeb in the biggest merger in Chinese internet history.