Fix for deadlocks in stop_deployment task

Nailgun base object:
- order_by method added into NailgunCollection
- get_by_id_lists renamed to filter_by_id_list
- filtering by param logic extracted to method
- filter_by_name method added

Nailgun Node object:
- move_roles_to_pending_roles method added

Rpc receiver:
- stop_deployment task refactored to nailgun objects
- queries with locking and ordering used in stop_deployment
- ordering added into locking queries in deploy_resp
- fetched from db nodes used in deploy_resp 

Change-Id: Idff49dd7e01a159f4d5c4f4208aadf1894346b8e
Closes-Bug: #1321302
Merge "Fix for deadlocks in stop_deployment task"