1. Add partial updates flag to transactions
This is required for the related resources keeping their original values
2. Handle empty transactions
3. Start using transactions in some resources api calls
4. Fix a bug with mandatory child resource
5. Remove empty fieds from dicts when needed to not fail partial updates
in transactions
Change-Id: Ic3bc4e076b9101c5a296f296262dda7a94767304