server: nightly conversion of formats
server: refactored Flask setup into factory module