Templated Nucleation in a Dynamic Environment: Crystallization in Foam Lamellae