refactor out play-json + reactivemongo functionality from the plugin functionality