api: paginate a bit more carefully
Reduce default page size to 50
Added validation for api args
Moved url prefix to app creation
API: imports cleanup