Refactor search url resolution, may break something
Refactor search url resolution, may break batch download @ *gelbooru
move debug code, auto dump downloaded file to txt