Added safe_wrap (escaping markdown and textile) to cached gists. Closes #917