Port ZeroConf to phonegap 2.4+

port ZeroConf to new API from deprecated one and add list() function