adding the cordova folder for the native support of cordova plugins

Adding a folder named "cordova" which contains a main file named cordovaSocket.py which is called by the apisocket.py with the parameter as given by the javascript call. This then calls the appropriate function of the required plugin.All the various plugin codes are written in there respective files.
Use a `with open(...) as fh` statement instead of just `open`.  With makes sure the file gets closed if there is an error!