Accept source attributes in PaymentsController to fix backend payment processing.

Fixes #3823
[backend] Use the controller name rather than Object when a model does not exist for authorize_admin method

Fixes #3622
Move preference_resuce.rb into Core, where it should've been

Fixes #3860
[frontend] Removed scopes/dynamic.rb

The price_scopes_for method defined in this does not appear to be used anywhere
Add changelog entry for #3860
Fix issue where cancelling a line item delete didn't actually cancel it

Fixes #3862
Refactor ReturnAuthorization#generate_number

Fixes #3864