Fix issue where MenuItem tags were getting lost in portrait mode

If MenuItem tags are not discovered correctly, Navigation Editor cannot
show the correct source for menu transitions. (Default behavior was to
indicate the entire menu - which was confusing.)

Change-Id: Iccdc04a6f6c9ebca687c4168b48aed1683c30d01
73991: Adds ApkInstallerService to not upload an apk twice

AndroidStudio will now push only the APKs that have changed.
This is done by keeping a cache in memory of the APKs hashcode that
where pushed to a specific location on the device.

If the APK content changed or the device is disconnected the cache
is cleared.

This is silimar to what we did in Eclipse.

See https://code.google.com/p/android/issues/detail?id=73991

Change-Id: I6d7f67b20819c6ea864361e068204f4e8063da78
Merge "73991: Adds ApkInstallerService to not upload an apk twice" into idea133
Add configuration switching tests.

Add a few more test cases to testConfigurationTweaks when a layout
overrides an API level.

Change-Id: I2b7571efb9d0b9b278fada5c4c215ec669854071
Merge "Add configuration switching tests." into idea133
Merge "Fix issue where MenuItem tags were getting lost in portrait mode" into idea133
MemoryMonitor: Makes sure DDMS is properly initialized.

It also adds a bridge listener in case the connection is lost and restored.

Change-Id: I0ac07b629b8a2dcd013e02beda4f97f427f97f50
Merge "MemoryMonitor: Makes sure DDMS is properly initialized." into idea133