Renamed some files. Implemented REST api for threads. Responses now appear immediately after posting.