Improving error messaging handling and Ajax calls.
Merge branch 'dev' of github.com:calpath/scenario-editor into dev