Bugs/revision edge case

A couple of bug fixes for some edge cases discovered with the revisions system.
(rolling back live without a current + status fix when current is set aside from live)

Additionally improves the revisionable tests slightly by resetting indexs in sqlite to 0 on the tear down meaning we no longer have to hard code ids.