Allow orders with custom statuses to use the pay page

Improvement over #2556, Adds two new filters, `woocommerce_valid_order_statuses_for_payment` and `woocommerce_valid_order_statuses_for_cancel` so orders with custom statuses can be paid on the pay page and paid/cancelled links can be more easily modified on the my orders template.