deck/public refactor

I moved the filter code out of the view into the controller. Did some general cleanup and looked at the performance of the page and shaves off a lot of queries.