Schemas: Slightly simplify mode regexp

Slightly simplify "mode" attribute regexp in schemas for "config_files"
and "changed_managed_files" scopes.
Schemas: Fix indentation

Fix indentation in schemas for "config_files" and
"changed_managed_files" scopes.
Schemas: Improve definition names

Change definition names in schemas for "config_files" and
"changed_managed_files" scopes. The new names better describe what the
definitions represent.
Merge pull request #180 from SUSE/schema-config-files-changed-managed-files-tweaks

[Review] Request from 'dmajda' @ 'SUSE/machinery/schema-config-files-changed-managed-files-tweaks'
Remove superfluous string preparation calls for scrubbing

The "dup" and "force_encoding" calls were extracted into the "scrub"
method in c36fd7470 and are thus not necessary here anymore.
Schemas: Remove duplication

Remove duplicate property schemas in schemas for "config_files" and
"changed_managed_files" scopes.
Schemas: More precise descriptions of file states

In case of "config_files" and "changed_managed_files" scopes, there are
two possible states of each file:

  1. The file was changed ("status": "changed")

     This state has two sub-states:

     1.1 The file was modified ("changes": [...]).

         In this case, the list of changes is saved in the "changes"
         attribute and file metadata is saved in the "mode", "user" and
         "group" attributes.

     1.2 The file was deleted ("changes": ["deleted"]).

         In this case, no metadata is saved.

  2. Determining whether the file was changed resulted in an error
     ("status": "error").

     In this case, the error message is saved in the "error_message"
     attribute.

This commit modifies schemas for "config_files" and
"changed_managed_files" scopes to match the states correctly.
Merge pull request #183 from SUSE/review_140904_remove_superfluous_string_preparation_calls_for_scrubbing

Remove superfluous string preparation calls for scrubbing
Merge pull request #184 from SUSE/schema-config-files-changed-managed-files-more-tweaks

[Review] Request from 'dmajda' @ 'SUSE/machinery/schema-config-files-changed-managed-files-more-tweaks'
Schemas: Change structure of the "unmanaged_files" schema

Change structure of the "unmanaged_files" schema to eliminate
duplication and make the structure more logical.

Also replace the the '"additionalProperties": false' hack in the
"not_extracted" definition by the "not" keyword. The hack was there to
make the definition mutually-exclusive with "extracted_*" definitions.
(without this, the toplevel "oneOf" keyword wouldn't work). However, it
prevented extending JSON objects representing non-extracted unmanaged
files, which was wrong per our data model design (which says the user
should be able to extend any object with custom properties).
Schemas: Slightly simplify mode regexp in the "unmanaged_files" schema

Slightly simplify the "mode" attribute regexp in schema for the
"unmanaged_files" scope.
Merge pull request #185 from SUSE/schema-unmanaged-files-tweaks

[Review] Request from 'dmajda' @ 'SUSE/machinery/schema-unmanaged-files-tweaks'
Make Rakefile work with RSpec 3.1

RakeTask in RSpec 3.1 does no longer allow to specify an array of paths
as the pattern. Since the purpose of the problematic rake task is only
to exclude the integration test we use the new "exclude_pattern" method
to achieve the same result instead.
Merge pull request #187 from SUSE/review_140905_fix_rakefile_in_rspec_3_1

Make Rakefile work with RSpec 3.1
Remove obsoleted nil checks as due to the json validation these not
necessary anymore.