JBIDE-15302 CordovaSim: Refactoring. Adding cordova-3.1.0 support