clean up tinymce_helper.rb
Cache responses for author_preview.html student_preview.html [#67856314]

https://www.pivotaltracker.com/story/show/67856314
Invalidate the activity cache when activities are modified in any way.

[#67856314]

https://www.pivotaltracker.com/story/show/67856314
ignore cache directory.
WIP: The converter knows when it has failed. Part of [#67314208]

https://www.pivotaltracker.com/story/show/67314208
Check that the converter runs cleanly.  [#67314208]

https://www.pivotaltracker.com/story/show/67314208
Converter validation: don't call removed_cached_runtime_json  [#67314208]

https://www.pivotaltracker.com/story/show/67314208
Finish runtime caching, begin runtime json errors

completes [67856314]
starts [#67314208]

https://www.pivotaltracker.com/story/show/67314208
https://www.pivotaltracker.com/story/show/67856314

Activities can by_pass the runtime json conversion w/ prevent_conversion

This is handy when being copied, or when running certain tests.

TODO: Maybe also specify a way to prevent running conversions using ENV
for testing scenarios?

whitespace cleanup.

This method was moved to sg_permissions.

Test for error detection in converter.

Invalidate chache when name or author_name changes.
Use seymour as the deployment gateway.
Add runtime_json MIME type to get the json required by the runtime.
Ensure that MathJax re-renders math type on every step.

[#68317990] "Math markup won't work on second page of an activity"
https://www.pivotaltracker.com/story/show/68317990
Clear cached versions of when activity parts are added or destroyed.

[#67856314]

https://www.pivotaltracker.com/story/show/67856314
whitespace.
Move more caching behavior out of controller to the caching module.

[#67856314]

https://www.pivotaltracker.com/story/show/67856314
Small simplification: Reuse the activity we looked up elsewhere.
Write to FS from the caching module.

[#67856314]

https://www.pivotaltracker.com/story/show/67856314
Cache entries after successful authoring.
Rename caching module to sg_activity_caching.rb rename some methods too.

json_cache_path ➙ cache_path(filename)

Should finish [#67856314]
https://www.pivotaltracker.com/story/show/67856314
Create the path to the cache file if it doesn't exist yet.
Hide some fields from forms. EG: Activity errors.