Less reliant on the API + show_deleted & show_all

Not sure whether this will be version 4.1 or 5.0 when done, so I'm using 4.1 for now.

* Added in a show_deleted and show_all option.
* Updated the script so that all options besides the "show_x" ones can operate without a "show_x" tag set to true. This means thumbnail_count, image_resize, load_sample_first, and script_blacklisted_tags can work with no API.
* Updated the thumbnail_count option to make all post search links and the search box include the limit option.
* Made regular expressions not capture when unneccesary.
* Updated the fetchInfo function to work with images removed by artist request.
* Integrated another Danbooru function to simplify the script.
* Updated the searchAdd function URL paths.

Time to test and do some more cleanup.