Refactored get_all_tasks to simplify it

Also change the spec: it doesn't need to raise exceptions
when some options are used without the 'archived' option.
They are discarded instead.