exhentai branch

well im not publishing this shit to github
no changes
Fixed 4chan module.

Urls were protocol less and broke when attempting to download with
urlretrieve, fixed by making all the links absolute with "http:"
Added imgur module, fixed some mistakes.

4chan.py: Fixed the filename in the header.
BaseAlbum.py: Changed image_titles to image_names.
exhentai.py: Fixed filename. Changed image_titles to image_names, and
made appropriate changes.
imgur.py: Finds json/dictionary content in the source code of the imgur
album and loads it as json, after which the album is generated.
Updated imgur album.

If '#n' is in the url, it gets removed, title now mirrors the document
title, except if the document title is "Photo Album" in which case it
uses the ID.
Input errors for albumtype allows for resetting

Will also insert the erroneously inserted url into the args.urls list.
config, ext, albumtype and so on.

Config: Now goes to right directory based on what config says.
If no extension it will look at the url and take that extension.
If albumtype is an url, it will ask you again for it, because you
could have made a mistake.

General cleaning up and going back to developing in vim.
Proper implementation of exhentai

Exhentai now works on albums disallowed on g.e-album and ones not
disallowed.
Fixed weird error

Somehow the gallery url gets added to the image_urls list by the xpath,
even though it shouldn't. Fixed it by adding a class comparison.
Removed some text feedback,

because it doesn't fit in with how it works for the rest of the modules.
os_safe_name returns may not be over 100 chars

changed in BaseAlbum, was gonna do it individually for every call but
decided it was smarter to just do it in what everything inherits the
function from.
Default timeout changed, object is deleted

Default timeout was changed because it would hang for quite a while on
some files, this is then the attempt to fix it.

Objects created are now deleted because of some weird naming behaviour I
haven't been able to reproduce, but it creates no side effects as far as
I'm aware so there was no reason not to try it.
Changed header date, updated da, removed edit var

Header date format was updated for all modules and in main.py.

DeviantArt naming scheme is now numbers, because it just got confusing
with real names.

ALBUM_FIRST_EDIT and ALBUM_LAST_EDIT were removed because they were
fucking annoying to keep track off.
Added photobucket module, imgur downloads numbers

And os_safe_name will now perform strip().

Photobucket module, it's a new module that finds most recent images.
Very little testing has been done for it, I assume it will crash if
there's a lot of pages to process because they might do some magic about
how they handle that, also when there's a private album.

BaseAlbum: os_safe_name now performs strip(), e.g it'll remove
whitespace at the ends of the string.

Imgur: download names are now numbers in the style of %09d, because
there's no rhyme or reason to the random letters and it'll make it a lot
easier to figure out what goes where in an album after the download.
Site made a change for paging.

Had to change the xpath from looking for the class ptb to the class ptt.
self.image_names for imgur was too short

Changed implementation to not include extensions, because they get added
in the main loop anyway.
Implemented logging, isfile check changed

Logging is used for for most output now, it goes both to stdout and to a
log file. Done using the logging module and a logging config file. I'm
sure there are multiple modules that need to be adapted, but for now I
just want the basic information in the logs, not all the trash like for
deviantart I don't need to be told that it's logging in or what file
it's on at any given moment.

isfile check was changed because it didnt work if the filenames didnt
have an extension, which they dont in some modules for example imgur or
deviantart. So now the extension gets appended if there is no extension
on the file, and then the isfile check is done.

Gitignore updated, I dont want log files to be part of the repository.
Added imagebam module.

Adapted from earlier version of the program, nothing much was changed
except variable names and such.
Updated README to reflect changes done

that is, the ALBUM_FIRST_EDIT and ALBUM_LAST_EDIT variables were
removed, because they added nothing.
Merge with other branch