Merge pull request #5 from hopkings2008/merge_upstream

Merge upstream
Merge pull request #6 from hopkings2008/master

use local cache for vms, reduce get method usage.
add more filters such as 'bj-ha-3/cl8/zouyu'
make the filter match more stable
change modle_test
add nmap fucntion to detect MAC address and Ip address
if can not connect to libvirt, return
go log.Fatal will run Os.Exit, I do no want this
fix nmap_test
add missing locks
Merge pull request #7 from hopkings2008/merge_upstream

add more filters such as 'bj-ha-3/cl8/zouyu'
s/UnLock/Unlock/g
add LocalIPs() to detect ip
add TODO
fix vms null
add safemap copied from beego
add rescan IP address support
fix nmap
convert mac to lowercase
If Exists Update Else Insert