This makes two separate message formats for checkunfinished() and
getrepostate() as there were previously present.
This changes the old message format used by unfinishedstates
to the format which was used by STATES.
The commit message seems outdated.
Also I think we can fold this one in previous patch so that there are no un-necessary test changes. @martinvonz what do you think?