Add parameter for arbitrary wget flags

This adds support for a `flags` array that can take an arbitrary number of wget
command-line flags. Our use-case is adding the `--auth-no-challenge` flag, which
doesn't seem worth adding a dedicated parameter for. Hopefully other users who
have individual requirements can use this array to add options to a wget request
without having to work too hard.
Fix lint problems