Removed deprecated code
added server 500 errors. made editor behavior a bit more robust. hope i didnt break anything (TODO: regression testing)