typo with datatype_id vs datatype vars
Handle case of no selected revision (live only)
Correct status for making live none latest.
Fix bugs with test (indexs now reset to 0)
Merge pull request #201 from unikent/bugs/revision-edge-case

Bugs/revision edge case