Archive extension

Provides per-day archives and full non-hierarchical archives (see Issue #1493).
removed local variable.