Implemented get_queue, based on soffes ruby project

Added get_queue (this is heavily based on get_queue that is implemented by soffes (in Ruby).