OSX: Refactoring in SyncListenerService (extracted abstract base class).

- Extracted most of the basic logic from SyncListenerService to
SyncListenerServiceBase; now SyncListenerService only has the business
logic for responding to HTTP commands.
- Cleanup in AppConfig classes.