Reprepare cassandra 2.x style batch if batch fails due to unprepared statement

This PR depends on #161. I wanted to split it out into 2 separate PRs to keep the code discussion seperate, but I'm unsure now if I've made an awkward PR.