Wave propagation in photonic crystals and metamaterials: surface waves, nonlinearity and chirality