Added variable $config:temp-resource-mode.

References #641.
Partial replacement of hardwired permission modes.

Referenecs #641.