Remove dead code: Plot._get_script_inject_snippet
Move _PlotObjectEncoder outside BaseJSONSession
Add support for embedded objects to JSON serializer