Cleanup code. Added possibility for email attachments. Updated for iOS8, now the activityController works with the new iOS8 presentation popover on iPad as well.