enable clearing of server documents, also store correctly
Merge pull request #1439 from bokeh/feature/1437_doc_clear

enable clearing of server documents, also store correctly