Added ability to specify amqp server in the command line, fixed config reading