fix(archive): archive upload refactoring done, dev version.

not for merging yet.
(uploads fail 50% of the time, template has debug markup)