Factory templates

* Made factory queue templates more accessible, the save button was hidden when the factory wasn't paused

Also some stuff that remove UI-lag:
* UIFile() caching now works again
* Cached DiskGetFileInfo() so it doesn't hit disk for non-existing files again and again

Fixes #139