Move config data to template

@Raydiation @karlitschek 

To test: Just check if rename/deletion of a file works. This requires the requesttoken to be sent correctly. 

Please backport to stable5 after testing.