CB-8086 Fixed framework tests.

Installing and uninstalling frameworks now read AndroidManifest.xml to
get the package name; the readFileSync fakes are updated to reflect
this.
Added a missing "else" keyword.
Add orientation preference support for iOS, WP8 & Firefox OS