timob-13907: remove the duplicate nodes after merging resource files.
timob-13907: use open to open a file since we don't need any encoders and decoders
timob-13916: don't log debug message when it's in package mode
timob-13916: should check the DBG flag in logInternal()
Merge pull request #4338 from pingwang2011/timob-13907

timob-13907: Android: Failure to build KS to device 2nd time
Merge pull request #4339 from pingwang2011/timob-13916

timob-13916:Android: Packaging - Debug information is being printed out to DDMS when packaging to production
[TIMOB-13934] Fixed SOASTA build dependency problem where an app built subsequently without cleaning would fail to launch with the error 'java.lang.NoClassDefFoundError: com.appcelerator.apm.CrittercismBootstrap'.
Merge pull request #4342 from matt-langston/timob-13934

[TIMOB-13934] Fixed SOASTA build dependency problem.