Fix deprecation warnings.

Remove use of dispatch_get_current_queue and modal view controller
presentation methods. Update some renamed enums.