Cordova/Phonegap 3.x plugin compliant

Updated toast to make it work with Cordova/Phonegap 3.x new plugin system.
Basically it's the same code, I just changed a few things so that the hierarchy is similar to the one expected in 3.x version of Cordova/Phonegap.