Refactored out the initialization of the api
Merge pull request #54 from praekelt/feature/issue-31-improved-sms-error-handling

Refactored out the initialization of the api