Add logrotate support, cleanup settings generation

Stub upload script and cleanup auto generation of settings files.
Logrotate is implemented also.