Move data preparation logic from orchestrator to nailgun

Ready for review
* need more tests (as usual)

accept with https://github.com/Mirantis/astute/pull/69 in astute