Restructuring filter-alerts in sensu0_13.clj

As discussed, filter-alerts has been restructured for readability and
conciseness. Letfn has been used in order to allow circular recursion.