MT#7493 API set cloud_pbx preference on subscriber creation

(cherry picked from commit 489a86c8b8b3b92865827ae6a79cc5785f8eceb1)
(cherry picked from commit 5e525c9f5ad0b60af226aa4b1f3ca9008163ebdb)
MT#7731 Fix sound set handling for resellers

(cherry picked from commit 3a420aa0b9a95b7d619cdf44912541b4023bf009)
(cherry picked from commit 2296e3be7128bbaab6a2cb97752d493de623c455)
MT#7797 Filter for terminated customers.

- Allow status=xxx in collection
- Fix moving customercontacts

(cherry picked from commit 9115b48f703b566c170f1f08ab36387b0d26ff5c)
(cherry picked from commit 16472d2a987afca830f6183075eff2fbb70a4e49)
MT#7803 Add invoice links and sections.

(cherry picked from commit 14a629f4aaa6fcf0c020b0e5ad1082a40a303252)
(cherry picked from commit e5eb5158743c5c1a9038ec447fbce0fbdb2ee28b)
MT#5879 Add prevmonth option to ease prev month invoices generation.

Additionally to strict stime and etime.

(cherry picked from commit 657c02afb76a02b7549a2a452fa3f30b0be52cf6)
MT#5879 Add help for generate_invoices options.

Cherry-picked from 49f19db072adf65b0864282376a08a3a2436046e.
Conflicts:
	share/tools/generate_invoices.pl
Solved.

(cherry picked from commit 0e30e83e4cd9d72b49035c0892e765a52c2f2acc)
MT#5879 Make email invoices query simplier.

Remove redundant link through contract_balances to contracts.
Process customer email template and add month and year into invoice data.

(cherry picked from commit 24c63540b965e9c578830cd28f488972fb70fcde)
MT#5879 Make generate_invoices.pl executable.

(cherry picked from commit dfd4f663bedef428edfe5371ba0dd75b7ac5adc6)
(cherry picked from commit c445cf001de6fd3ad322ca8162a15886cd42d89b)