move writer class for reuse in memory status page

Summary: Move the writer class so that it can be reused for the memory status page. This also have an initial class for the memory status page which will be populated with metrics on in later diffs.

Reviewed By: @edwinsmith

Differential Revision: D1505623