fix bug in status when there are no vms

also clarify the code for handle_keepalive_event
fix closure issue

vmparking_list and update_xml are now fixed.
fixed a bug in update_xml
added new test for vmparking_list