gallium/util: and yet more box utils
nine/resource: add crappy dirty tracking

This should probably be improved later ...