Fixed bokeh-server backend shelve py3 incompatibilities.
Fixed issues in bokeh server and --backend=memory. Making the minimal changes to make it work OK.
Merge pull request #413 from damianavila/py3_compat

Py3 compat for bokeh server with different backends