Add test function to test GetSearch()
Add 2nd step of auth handshake. Return temporary credentials from first step for storage and verification in 2nd step.

Signed-off-by: aditya <dev@chimeracoder.net>
removed debug from users.go

Signed-off-by: Aditya Mukerjee <dev@chimeracoder.net>
Add .patch files to .gitignore
Run gofmt
Add GetSelf() and VerifyCredentials() methods. Add ApiError type so applications can detect rate limiting. Add RateLimitCheck() to ApiError.

Signed-off-by: aditya <dev@chimeracoder.net>
gofmt

Signed-off-by: aditya <dev@chimeracoder.net>
Implement functions for basic rate limiting / throttling
Implement rate limiting / throttling for GetUsersLookup
Implement SetDelay method which modifies the client's throttling delay
Fix GetDirectMessagesSent and GetDirectMessagesShow

* Previously they pointed to the wrong URL
Automatically throttle all functions that query the API
Fix delay to subtract out the time that the request took

* If a request took 10 seconds, we don't need to wait for another 10
seconds
Start parsing errors
Add struct that will be used to handle Twitter's errors
Change NewTwitterApi to return a pointer (necessary for throttling)
Add test for decoding Twitter's built-in error codes

* Test currently fails as it does not unmarshal Twitter error messages
correctly
Export "errors" field of TwitterErrorResponse to allow unmarshaling
Fix test for decoding Twitter's error codes as Go errors
Remove unnecessary log statements from twitter_test.go