Adding diagnostics posted to gist to debug out of memory

Initial addition with a hack to embed gist and json gems