Further simplification of Tiddler.update()

Don't bother to assign the expression iterated through to a variable
when it is only used by the following "for" statement.

Add to the "actions" list using extend() instead of list concatenation.
This avoids creation of a new list object.
Collect links in a set in Tiddler.update()

Previously, the links were collected in several lists, then combined,
converted to a set (to remove duplicates) and then converted back to
a list. That involved a lot of unnecessary work.
Also deduplicate image references in Tiddler.update()

The links were deduplicated, but the images were not. I don't see any
reason for this difference.
Find links in SugarCube-style <<click>> and <<link>> macros

The <<link>> syntax is ambiguous in the 2-argument case. I checked the
SugarCube source and if the last argument is a known action keyword,
it is treated as an action, otherwise it is treated as a location.

Since these macros are SugarCube-specific, this code should probably
be moved into the header-specific Python module, once that lands.