generate FTP config during first initialization
Several small bugfixes