Nonlinear filtering and large deviations:a pde-control theoretic approach