Add configurable endpoint parameter.

We can choose to send an sms or a text to speech (tts) setting an
'endpoint' key value in $config parameter used  in constructor method.