registry: add States to retrieve all unit states
registry: add error to States() call
Merge pull request #749 from jonboulle/states

registry: add States to retrieve all unit states