Make Studio load XBlock fragment js and css on the client-side

[LMS-1421][LMS-1517]
Make uses of quote_slashes always operate on encoded strings