Improve sending web link with Bluetooth

When sending web link from Google maps app, link cannot be used by
receiver as maps app will send extra text in addition to web link.

Improve the creation of html so that only the web link is
interpreted as a link.

Code is partly copied from MessageView class in the email app.

Change-Id: Idb093cc3d5af5fa6b85649d194fa6dc0c6fdfd1e
Bluetooth: Fix crash when sending SMS from handset instead of MAP

Some SMS apps use custom message types for internal handling. If MAP is
observing when this happens it will crash Bluetooth with array out of bounds.

Change-Id: I72fe6701f1fa9e43f16e79bc6b81b9e7c3256954
Merge remote-tracking branch 'github/cm-11.0' into HEAD