Fixes #338

Expose replication framework as a service for better user experience.