Port ZeroConf to phonegap 2.4+

port ZeroConf to new API from deprecated one and add list() function, tested on 2.4.0 and 2.7.0