Add options hash to tasks

Allows passing in additional fields like opt_fields to the API.