add gravtastic stuff. add choice for url or image upload. add flash messages for new and update