Iraq has signed a breakthrough deal with BP to share share its profit in return for developing its gas and oil fields in Kirkuk.