Implemented a base class for all API controllers that will rescue from any exceptions that are thrown and will return a JSON object to the caller with an errors property set.
Fixed the Notifications to only remove the notification when the post to the server is successful.