fixing bugs in create_queue. NOTE: client side of create queue must change, because returning 'qid' instead of 'id' in json object.