Set and check a class boolean variable to prevent loops in PRE_SAVE &
POST_SAVE dispatchers
$app['storage']->saveContent() always returns the ID of the content
saved
$this->app['db']->insert() and $this->app['db']->update() only return
row numbers or generate \Error's
Code comment
Logically redorder and comment
Better handling new vs. existing records
Handle Bolt 2 content creation based redirects properly
Add an else{} and TODO comment that we hit when saved by and AJAX POST
Correct comment
separate checks into their own methods
Pass 'new' as the ?returnto= parameter in editcontent
Handle AJAX saves with specificity
More concise handling of save states
add ability to remove checks
Add a marker comment
add config check
add option to prepend checks
fix config names
Merge pull request #1680 from GawainLynch/hotfix/storage-event-handling

Prevent loops in Bolt\Storage PRE_SAVE & POST_SAVE dispatchers
Flush output buffers and return JSON to the AJAX caller