Bug in saved v4 notebook format

Wasn't generating correct format for output elements in code_cells.
NBFormat v4 Tweaks, fixing rename-notebook

Renaming notebooks should work a bit better now, tweaked code for saving
nbformat v4 to correctly include execution_count parameter even if cell
has not been executed.

Cleaned up some silliness in ein:query-singleton-ajax.