Update lib.php

Added new functions & used curl extension for sending SMS when using clickatell API.