state: prepend environment UUID to unit document IDs

http://reviews.vapour.ws/r/93/diff/