Results archiving

Added results archiving.
Result files are archived if the number of .json files exceeds n (specified in config). For each n files, a new archive is created (encoding specified in config).
Archive files are deleted after being sent to the server.
If code reaches here and instead of n files, there are 5n files, it makes 5 archives. What you proposed doesn't do this.