Abstracted email functionality into separate package, added site restored notification, added status code check to rest helper