Added error handling for server
Locked down some vesion numbers in Gemfile