added a tentative document for REST event APIs.
added a new method: FaceRest::getExtension().
added a basic framework to select JSON or JSONP by the path's extension.