Ignore patches, .DS_Store files, and node_modules.
Add a necessery "this." before deserialiseMapData in syncMapData.
Initial wrapping of all server handlers. This patch should provide no change in functionality, but paves the way for adding code to all listeners later (by adapting the helper function). Plan is to eventually use that to make maintaining a chatlog easier. Patch is unfortunately difficult to read because of indentation change caused by pulling inline anon functions out.

Specific changed:
* Pulled all the server handler functions out into separate named functions rather than inline anonymous ones (which all take 2 args: socket and message)
* Added a helper function to add handlers to sockets: addSocketHandler(socket,command,func). Use this for all server handlers
* Used that helper in all the socket.on places.
Initial chatlog implementation using the handler. Chatlog is named based on the date and time the server first gets a message worth logging, If a handler function returns false, nothing is logged for that handler. Otherwise, whatever it returns is logged in a JSON object (one object per line in the file). Most things can just return the message directly, but if things want to alter the message they can before returning it.
Lowercase the chatlogs filenames

Let's keep the defaults all lowercased, since that's the typical convention on the main case-sensitive filesystems in current use.
Return false-y from the two handlers that don't log. No change in behavior, because the implicit return undefined is falsey and works, but explicitness is good.
Whitespace change to adapt to the appropriate style. I suspect I missed some cases but caught the big ones mentioned. I suspect I will be making mistakes like this for a while, because this isn't my natural style and it takes me time to adapt.
Correct a off-by-one error on file name creations. Months are 0-based, but days are 1-based. Because that just makes so much sense.
Merge commit 'HEAD@{1}' into patches

Looks like 'git apply' and 'git am' are NOT suited for applying patches on top of patches: ends up losing context.

Conflicts:
	server/index.js
Merge branch 'patches'