Close a table in variant autocomplete

There was no table closing tag in the variants autocomplete.
Fixes #5396
Show line items for orders that have not advanced to delivery state yet.
Dont let order import fail silently on bad line items.
Fix my mistakes from 933c773a234048b72fbd7cb4fccce8810ec55c83 :(
set the order#payment_state to the correct state when order is canceled

Fixes #5278
Closes #5279
Closes #5388

return the new payment state in the update_payment_state, and add some spacing in the spec.

remove the stub to make sure this is not always returning "pending" *doh*

Conflicts:
	core/app/models/spree/order.rb
	core/app/models/spree/order_updater.rb
fixing merge conflicts