The UN envoy for Libya proposes a national unity government, after months of negotiations between the country's two rival authorities.