tweak default tab size for better readability (in emacs, at any rate)

fix .dir-locals.el
importImage command should use the data property

for consistancy with the rest of the message types
chat messages should pack all the details into the data property

this makes it consistant with all the other messages
begin to unify message processing into a single function

so that we are not required to remember to stringify the message
object before we send it. future changes will consolidate the code
further
add a broadcast function that enumerates all open connections
regularize the importImage message
regularize userLogin message
regularize chatHistory message
send function should build the envelope

We'll pass it the command name and the payload and let it build the
actual object. This makes changing the message representation in the
future easy.
rearrange where the send functions are defined
add a per-connection sequence id to the server's messages

this requires that we always use the connectionId when sending, rather
than the connection object. This means that we can get rid of the
sendTo function.
fix user login
various fixes to make the initial page load more robust

makes jquery and jquery-ui local, and skips setting up the image
editor and file picker if they're not available. Also disables
geolocation until I can figure out how to better handle the error
case.
server should respond to chat messages correctly
like the server code, the client code can be made easier to use

constructing the envelope in a central place ensures consistency, and
simplifies the knowledge needed to extend the code.
print out all messages the server sends and recieves
ignore local node modules directory
the client too should send a sequence number with every message
Merge remote-tracking branch 'peter/master' into regularize-message-construction

Conflicts:
	client/openchat.js
Merge pull request #7 from db48x/regularize-message-construction

Regularize message construction