added save_snapshot function, both in MiniDiff and XMLRPC server