Added Logging, cURL error checking, JSON Output Added

Wiggle giggle cherry eagle, fix that shit,

cURL error checking when grabbing the JSON from Derpibooru added and looped to 10 retries

cURL error checking added when downloading image(no more errored images or 404 pages as images)

Added better logging structure

Added SafetyDir to JSON, for use in any project you may have