Fixed save_scenario view to respond with ajax, and updated javascript to display an error if the save failed. Added tests to verify fix. Fixes #244