text: // create a set of shared classes
  var remotes = require('../').create();
  
  // expose a simple object
  var user = remotes.exports.user = {
    greet: function (fn) {
      fn(null, 'hello, world!');
    }
  };
  
  // share the greet method
  user.greet.shared = true;
  user.greet.returns = {arg: 'msg'};
  
  // expose it over http
  require('http')
    .createServer(remotes.handler('rest'))
    .listen(3000);
    
  /*
  
  Test the above with curl or a rest client:
    
    $ node simple.js
    $ curl http://localhost:3000/user/greet 
    # responds as an object, with the msg attribute
    # set to the result of the function
    {
      "msg": "hello, world!"
    }
  
  */