Add ability to set timeout for REST client

Fixes #38
Be more efficient and concise

Fixes #38
Merge pull request #50 from tetsuo13/set_timeout

Add ability to set timeout for REST client