refactored, no more sockets but http calls
Gemfile fixes