Introduce edd_get_success_page_uri() and move functions to checkout/functions where they belong. #594