cordova: add support for websockets on Android 4.0+

Adds support for older devices (4.0+ (API14)) and native websockets on API 20.