Merge pull request #9 from gnudle/master

Add createThread function
Updated version to 0.1.4.
Update copyright information.
createEvent support

Intercom introduced a new function to track Events, see:
http://docs.intercom.io/filtering-users-by-events/Tracking-User-Events-i
n-Intercom. The events API endpoint makes it possible to track events
via the API, see: http://doc.intercom.io/api/#events .

This commit implements the createEvent method to utilize the events API
endpoint in order to track events to Intercom.
Added httpCode to $lastError.
Added httpCode to getLastError() mock.
Added createEvent() mock.
Added support for createEvent() mock.
Updated documentation.
Updated documentation.
PHPUnit is now executed via composer.
Added .gitignore.
[FIX] Added missing install section.
Fixed test

Fixed the test with the code suggested by @bpedro .
Manual merge pull request #10.

Added createEvent().
Bumped version.
Changed API documentation URL.
Change method to protected to allow for extending

I need to extend the Intercom library to add some logging around the httpCall but it's not possible because the httpCall method is private rather than extended.
Merge pull request #11 from ollietb/patch-1

Change method to protected to allow for extending
Updated version to 0.1.6.