Pass state dir through to modules in the config.
Make SCE script output raw data dump.
Fix permissions.
Split submission code into its own module that can run from the command line.