Extend exclusion settings to be used in syncing.

Moved exclusion settings to own section.
Added exclusion checks in sync code.