While fetching from ingest archive_ingest fails to insert initial version of the document in archive_versions.

Analysis:

Versioning is not enabled for Ingest resource and also resource definition has no projection attribute. While registering Ingest resource with domain, flask adds default projection to Ingest resource. Default projection will have the fields specified in schema attribute. Because of this querying on Ingest resource will not return "_version" as part of response even though the collection has that attribute, Because of missing "_version" attribute archive_ingest fails to insert document into archive_versions.

Solution:
Although versioning wasn't enabled for Ingest resource, superdesk inserts "_version" attribute. This is removed and inserting "_version" attribute while fetching. Also modified behave tests of fetching in archive_ingest.feature to check for "_version" after fetching.
SD-1286 Add key to store selected theme in user preferences.
Merge pull request #465 from amagdas/sd-1286

SD-1286 Add key to store selected theme in user preferences.
Merge pull request #464 from sivakuna-aap/fetch_fails_to_create_version_history

While fetching from ingest archive_ingest fails to insert initial version of the document in archive_versions.
[SD-1274] Error message refactoring
[SD-1274] Error message refactoring
[SD-1297] Refactoring API (HTTP) errors
Rebased on master
Error codes are not needed
Reset password - if email is not match then throw badrequest
[SD-1297] Used message instead of payload wherever possible
[SD-1274] Refactoring Ingest errors
[SD-1274] Refactoring Ingest errors - rebasing on master
[SD-1274] SuperdeskError is inheriting from ValidationError
[SD-1274] Rebasing on master