First draft of a credit card trigger. Still needs some work; see comments in the trigger definition. Minor refactor in the other files.