Multipurpose dispatcher for RESTful services