Russia and Ukraine have reached an agreement "in principle" on the transit of Russian gas to Europe. The deal comes only days ahead of a looming New Year deadline. It ensures some Russian gas to flow through Ukraine, securing the country's supply and important government revenue.