remove restful structure.

introduce lua module.