[feature/api] Renamed model to repository

Renamed model to repository and updated classes using these.

Added an entity for an API response which would contain HTTP
status codes, data and other information.

Updated path to retrieve topics list, it's now
api/forums/{forum_id}/topics/{page}.

PHPBB3-11595