[SMS] code optimization and cleanup of sms.c code. Thanks to Rebellos
Change-Id: I185a18b4a8195805dc17f842f03dbf90de4eb6ed
[SMS] Added MMS receiving

Change-Id: I608455aa87d3f7672406763b46d24fcc7b76757c