MOTECH-1081: Fixed search in SMS

I refactored some code in sms, also fixed total
number display in grids. We use custom lookup operators
in order to perform searches.

Change-Id: I25221811ca89f1b65ee58ab5a6319e0bb06ed60f
Merge "MOTECH-1081: Fixed search in SMS"