better cleanup, partialy working - http://stackoverflow.com/questions/690150/delete-an-image-bound-to-a-control

cleanup:
* 5 entry points - new/edit/removed-new,old/exit
* still not able to delete image which is bound to listbox but set to
null - trying window closing to set to null and closed to delete, trying
calling parent form to do on closing, guess child must be fully closed.
it worked the last time with bad cleanup!!!
* i must have no more references of Visits and only then the file is
unlocked for deletion!
* cloned files to be deleted from child form to parent form for partial
success else i get the app in use error -
http://stackoverflow.com/questions/4119347/cloning-a-list-in-c-sharp
* the issue -
http://stackoverflow.com/questions/690150/delete-an-image-bound-to-a-control
http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/dee7cb68-aca3-402b-b159-2de933f933f1/

notes:
* one of the big challenge has been handling edits on hasmany
relationships to visit table (tags, symptoms, media are related to visit
by 1 to n.). all other parameters are simple maps. maybe i can use a
framework for handling the models better.
build 2 done

cleanup:
* made cleanup persistant, if not this time, clean it next time during
app close - cleanup table
* deleting needs flush - depends on flushmode -
http://stackoverflow.com/questions/4471035/why-do-i-need-to-call-isession-flush-after-isession-delete

Mtags:
* removed MTags, doctor wants only tags with visits and thus they are
applicable to Media

add Media
* appropriate photo or video tab gets selected
* capture window doesnt close when video is added

to do:
* test