Function 'localize' moved to ServicesManagerTarget library

- bnc#886117
- added test case
- tested in latest build and the fix works
- tested with `rake osc:build` and passes

I can't change the logic of whole services manager now. I've just extended the current code to have a minimal impact on the other code around.