Do not ScopeSetCurrent in ScheduleEditLineOperations
Do not ScopeSetCurrent in ScheduleEditXmlOperations
Do not ScopeSetCurrent in CheckControlPromises, push body frame
Fixed autotest after $(G) reference changes (7a3024c1a5c5b35).
Merge pull request #765 from kacfengine/14_reports_failure

Fixed autotest after $(G) reference changes (7a3024c1a5c5b35).
Remove unneeded static function (only used once).
Made file copies and edits preserve extended attributes.

This means that ACLs and security context information will be copied
along with a file, and preserved when doing edits. If the preservation
is unsuccessful, the promise will fail.

Solves issue 2728.