Added rabbitmq attributes in server.rb + cleaned code