Fixed issues when using cordova-cli 3.2.0 and Android SDK build tools 18.1.1

I got errors about the plugin not being found or the file name not matching the class name after building with cordova-cli 3.2.0 and Android SDK build tools 18.1.1. I looked at other plugins and the Cordova documentation and used old Java knowledge to come up with this solution that works fine for me. There might be problems when using other versions of the Java compiler, cordova-cli and/or Android SDK build tools so this should be investigated (see issue #1).