Add dpa_get_redirect_to() and dpa_verify_nonce_request()

Ported from bbPress.