Splitting the code into some modules

Split the code into modules, because gtk_batch_downloader.py was passing
500 lines.