[#40] Insolate Cordova middleware to lib/middleware/cordova/