Merge pull request #639 from yxl/flush

Flush unclosed files actively to work around bug #227.
Implement localmsg://nokia.sa.service-registry API
Merge pull request #642 from PinZhang/pzhang/nokia.sa.service-registry

Implement localmsg://nokia.sa.service-registry API
Tests for playing audio.
Tests for audio volume control.