mka: Add helper functions for dumping and creating peer