Spatial Instability, All-Optical Limiting and Thresholding in Nonlinear Distributed Feedback Devices