add a json api for comments
remove unused files