Add SMS Middleware layer.

Change-Id: If5621d0c5126d6917ab00143af645692f3c4a384
(cherry picked from commit 4036e712b85ef11b370d85ca620ed7f2cd678072)