change some foreign keys
add customer delete and edit templates
add customer delete view and beginning of edit
add flash messages to index
add delete and some iteration fixes