refactoring structure files
created render_to_json shortcut and refactoring decorators and middlewares