Refactored sms & web parsing to common base class

Change-Id: Id294fabdae2b67b5d1b366455b83606a05513465