CB-6962 Ported globalization tests to framework

Tests will not be pulled into project with inclusion of plugin. Pending
changes to tooling to run with --test.
Added test to complete CB-7064, added tests that check for W3C compliance in language tags generated from PreferredLanguage and GetLocale methods
Clean-up: removed duplicate code
Renamed test dir, added nested plugin.xml
CB-7233 [BlackBerry10] Globalization is now supported
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/cordova-plugin-globalization