Port "Fix cropping on MMS inline thumbnails"

The following patch fixes the cropping that was broken in jellybean. This worked
properly in Ice Cream Sandwich and CM9. It now behaves correctly with this
patch. Here are before and after pictures of both a regular photo and a
panorama.

Photo:
before
http://img62.imageshack.us/img62/3783/beforee.png

after
http://img24.imageshack.us/img24/231/afterwd.png

Panorama:
before
http://img194.imageshack.us/img194/3882/panobefore.png

after
http://img607.imageshack.us/img607/962/panoafter.png

Change-Id: Ie37d09bf46eca4efb7dc0be02dbd971648abd4ca
Return to message list if the last message on thread is being deleted

Migrating features from CM7 to CM9
- http://review.cyanogenmod.com/#change,6576,patchset=2

Change-Id: I52f806c6347450ec8b91cdf053d4951511805f7e
Messaging: Prevent the light from being dismissed when a QM Popup wakes the device

Change-Id: I6390a7ff0fcef7e32246ee0a75e59aa46941deaf
Messaging: Add the ability to mark a message as read from the notification

Note: It will only shows on single threads, just like the Call action

Also tweaks the settings strings a bit

Change-Id: Ie584b8f6b9d8a02005d55bfa99479c5bf5b87e56
Messaging:  Only allow Mark as read when Quick reply is active

Change-Id: I1d3e803f28d8f7bd52059deb5a48f861ddf01545
QuickMessage:  Better 'Mark as read' handling

Allow for marking messages 'Read' when the pop-up is enabled. When the
thread a marked read, the matching message pages will be removed from the
pop-up, leaving any unread messages in place.  If all messages are marked
read from the notification, the pop-up is dismissed.

Change-Id: I597ba30e0f2a09626bfdd9257aa7be98623e0d73
Messaging: Fix the order of the Mark read action

Change-Id: I7ba5a08f67de57c8b9be2b037c474d517bcc2c4f
Mms: Avoid showing a window when marking as read

Change the "mark as read" action implementation, so that it
uses a BroadcastReceiver instead of an Activity.

The downside of using an Activity is that the current top
activity will be paused and resumed. This pausing, however
brief, may disturb what the user is doing, like watching a
kitty video on youtube.

Change-Id: I1fe3868a1e82856e42265b14590fab721492db59
Squash slim mms commits