Refactor archive/ingest html into directives.

SDUX-56