[#issue-84] wip: add a heap dumper and a separate thread for persisting dump