Adding log-error-and-throw

Using this to log and throw an exception if the thumbnailing fails.
Adding documentation for some of the key env vars.
Adding /logs to .gitignore