Fix memory leak when navigating from native page

- Cordova RTC work item number: 44618, 45147
- Apache Cordova Jira issue: https://issues.apache.org/jira/browse/CB-6924 and https://issues.apache.org/jira/browse/CB-7028
- IBM PMR: 79005,999,000
- Commits to fix issue in 3.1.0esr: e8c4f2c9bc, c90e41ab39
- Full description: There was a memory leak caused by the PhoneApplicationService in the CordovaView when navigating back and forth between a native and hybrid page and another caused by ConsoleHelper. Additional leaks reported in the plugins were solved with changes to BaseCommand and NativeExecution. Problems were initially reported in 3.1.0esr and then changes were requested in 3.4 as well.