Revert "re #434 Fixed typo."

This reverts commit 213f4302609696c13c1db8ede60bb017e136ef6d.
Revert "re #434 Added recoverable behavior."

This reverts commit f95e1068f24fe271487889d221a407a0becd447f.
Revert "re #434 Added abstract persist able behavior."

This reverts commit dfc15e2b8a43fe95543a0536c060d8f118c6c6f5.
Revert "re #434 Added trailing state string."

This reverts commit bf9e16bb14c79d70706ffab0b02a1851c9f3f1b3.
Revert "re #434 Synced with latest changes."

This reverts commit f05a6604cc08f573f2e778c746702f4c1a8c440f.

Conflicts:
	library/controller/behavior/persistable.php
Revert "re #434 Synced with latest changes."

This reverts commit f05a6604cc08f573f2e778c746702f4c1a8c440f.

Conflicts:
	library/controller/behavior/persistable.php
Fixed typo
Code cleanup
Code cleanup
Renamed STATUS_LOADED to STATUS_FETCHED
Move specialised logic for redirects to send() method.
Data can be both a string or an array.
re #434 : Handle redirects on failed actions

- Do not unset the referrer is the entity status is STATUS_FAILED.
- Set the status message if save/apply actions fails and provide a default if no status message exists.
- If the save action fails to not redirect to referrer but to current url.