Excitability and self-pulsing in a photonic crystal nanocavity