This adds the hook ups so it can be read with the usual systemd utilities. Used in later commits by sytemd-oomd.
No code changes, just some refactoring.