added gallery scaffolding, tests, and fixed up archives view test