Nanny: load/save policy

- Fixes to create a worker in case of policy already exists
- Refactoring the code a bit
- some smal xml and utils fixes