add db handoff for broken urls
move stuff out of __init__
move core into class
handle amqp_host config
handle amqp_host config
handle out_queue config
handle out_queue name
handle broken_queue
handle url_queue