Creates the message handlers associated with the kernel session.
function createHandlers(session) {
  _session = session;
  _queue = queue.create(session);

  var handlers = {};
  handlers[messages.names.kernelInfoRequest] = kernelInfoHandler;
  handlers[messages.names.shutdownRequest] = shutdownHandler;
  handlers[messages.names.executeRequest] = executeHandler;
  handlers[messages.names.completeRequest] = completeHandler;

  return handlers;
}