Eliminated most std style iterators in security. Changed the way deletions are handled and implemented code that keeps rules in deletion from getting hits.