Forward port Templates functionality

Change-Id: Ieb9e54249dd512e65f23f32d503d11fba88335ee
Bring back QuickMessage, Unicode stripping, TimeStamps and Add to Calendar

Change-Id: I103195f61b13a83573e7bf8f8a1bf08cb8aacc94
Bring back Split SMS

Change-Id: I8b1ee608a1ca3989462f9a12bad19201309ec16b
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
Mms: Remove text/plain for ACTION_SEND

Always display registered apps for android.intent.action.SEND action, but this is not true.
Actually, it doesn't support that mime/type. Just remove it to avoid unexpected behaviour for
external apps.

See ComposeMessageActivity#addAttachment

Change-Id: I4815a59533dbfc3decfbdbc57bf456ebda3cab7a
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
Fix SMS sending.

ACTION_SEND_MESSAGE must be routed through the privileged receiver now,
otherwise it'll be dropped in SmsReceiver.

Change-Id: Ifbe6e222d16053c038ca79a98e6bc837090ea3a3
Fix up receiver declaration.

The intent this receiver listens to is used by the BT MAP implementation
to send out SMS it queued. As the manifest and the
SmsReceiverService.java were in disagreement about the action name, this
didn't work.
Also secure the receiver in the process, it can be used to send out SMS
without having the SEND_SMS permission otherwise.

Change-Id: Ia8d181731baea586865ce3f18fe0864636c2b6f4
Fix AAPT warnings

Change-Id: Id791b867bdd0cb07681fa626274480c6316ed061