add common func: RenderJson
refactor
add some http api
add plugin routes and run routes
bugfix