Ported to Cordova 2.7

It's a major rewrite of the plugin, tested for 5 days on my own app so it shouldn't be too buggy hopefully.

Apart from the port to cordova 2.7, it also adds a plugin.xml file, that allows the plugin to be auto-installed using cordova's plugman utility.