refactor argument parsing and config storage
refactor argument parsing and config storage

no functional change, but now the config is stored in a structure
and decoupled from the flow of main()

thomasjacquin/allsky,thomasjacquin/allsky,thomasjacquin/allsky