Extend triggers to support CAS updates

patch by Sam Tunnicliffe; reviewed by Aleksey Yeschenko for
CASSANDRA-6882