Add snapshot function.
Massive rename, part 1.
Massive rename, part 2.