Refactor: crmd: cache parsed agent meta-data rather than raw XML
Aside from being more efficient in space and performance, it will also allow
more flexibility in future changes to meta-data handling.
As part of this refactor, metadata cache handling was moved to its own
source code file.