Add SMS Middleware layer.

Change-Id: If5621d0c5126d6917ab00143af645692f3c4a384
Merge branch 'cm-11.0' into martincz