Optimize removing snapshots before undefining domains

it increases performance of "erase" command. 

Use libvirt build-in function "undefineFlags" to delete snapshots along with undefining a domain.