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

fixes #127 
@wcandillon mmmh. What about broadcasting an apiStatus event to set the code manually and then closing the window? http://stackoverflow.com/questions/23544106/can-protractor-be-used-to-test-multiple-browser-session-interactions