A State Space World For Detecting And Estimating Events And Learning Sparse Signal Decompositions