Expose connect method

Exposes the connect method and adds a `ready` event, allowing non-long running processes to initialize a connection before logging to logentries. Fixes issue #28.