Handle socket error, add rspec

- added handling of Errno::CONNREFUSED
- added rspecs for happy path and the new error-handling code
add travis file
change Rakefile for rspec
add travis build status
refactor tag rendering, add spec
Merge pull request #1 from bnugmanov/master

Handle "Connection Refused" gracefully