Add SMS Middleware layer.

Change-Id: I4fff0c584f8fce9c5f2f4fe86a82fe6480c307c7
Merge branch 'cm-10.1.1' into martincz