Running upgrade scripts from slingbar now first updates tables before running [#964 state:resolved]
Fixes some upgrade scripts to do better file write checking, plus adds a 'modstate' table scrub upgrade script
Adds all 2.x deprecated definitions to database prior to importing an eql file to all more successful import, deprecated definition files removed after import