move api routes declaration to its own file
add methods to detect the model and transformer to simplify API class extension
refactor to use perPage property instead of hardcode it
add more transformers