Added variable $config:temp-resource-mode.

References #641.
Partial replacement of hardwired permission modes.

Referenecs #641.
Merge pull request #49 from claudius108/master

Partial replacement of hardwired permission modes