reorganizing files for testing
renaming class-json_api to class-endpoint