Warn the user when closing/reloading page if the report is being saved

fixes #127 
@dknochen that would be the test that I am not sure how to finish yet.