memdump: Add comparsion method and update test tool to test it
memdump: Add support for emitting memdump data with a template

Also update the test tool to use this functionality and add a
template for the standard flat file format.