Changed public Service, ServiceWrapper and ServiceImpl to interfaces

This allows to mock these objects in tests.
Also renamed context field in Service class into Context.
Fixes after rebase.
Changed type of ComponentRegistry.Instance to IComponentRegistry

This allows to mock and replace global ComponentRegistry in tests
Added unit tests for AttributeSyncInfo and ComponentSync classes