I made a vow "If the Israeli troops retreated out of Gaza strip I will buy a cake from a certain bakery" and it happened. Am I obliged to buy from the same bakery?
You are obliged to buy from the same bakery. And Allah Knows Best.
What is the ruling on not fulfilling a vow?
A vow is a commitment towards Allah, The Almighty, and so, it should be observed as much as possible, and it is impermissible to take it lightly. Allah, The Exalted, Says –in commending the believers (What means): "(Because) they perform the vow and fear a day whereof the evil is wide-spreading." [Al-Insan/7].
Is it permissible to distribute the raw meat of the vowed animal sacrifice amongst the poor/to offer it to them in cooked form?
It is impermissible for the vow-maker to eat from the vowed animal sacrifice, rather, he/she should distribute it as he/she had intended upon making the vow, but if the vow was a general one, without any specification then, it is better to give it as raw meat.
I am an author, and I have books stored with me. Is it permissible to pay my zakat in the form of books containing beneficial knowledge for poor students, such as chemistry and mathematics, or religious books that spread Islamic sciences?
Zakat on wealth must be paid in cash from the wealth itself. Therefore, you should pay your zakat in monetary form so that the poor can purchase what they need. And Allah Knows Best.