api: check URL before starting background job

- it is checked, if the given URL is resolvable
- if possible, the file size constraints are also checked via
  content-length header information
- install httpretty module in setup.py
11 jobs for 41-return-proper-error-message-if-endpoint-cannot-be-resolved in 53 minutes and 17 seconds (queued for 1 second)