Fixed class 'String' not found error in PHP 5.4, fixed cache bug, and added notif

1. Added parameter for beforeSave(). [to fix class 'String' not found error in PHP 5.4]
2. Call clearCache() when there are changes in posts so that the cache of home view will be updated.
3. Added fail-to-delete notification
4. Added .travis.yml