Porting the page callback and fix initalization of the restful plugins.