Moved all the doc functions around
Added whenNothingPending
Added query subscription and fetch callbacks
Fixed some typos
Fixed bugs in list demo and query & doc
Merge branch 'rewrite' of https://github.com/josephg/ShareJS into rewrite

Conflicts:
	src/client/connection.js