registry: add States to retrieve all unit states

@bcwaldon is this in line with what you had in mind? (obviously this doesn't start to split out Jobs() yet, I can do that in this change or a subsequent patch)
Let's return an error, too.