Backport CordovaBridge from 4.0.x -> master