two weeks worth of changes. Includes ajax fixes and major work on select_notes and edit_report