API calls to filter user list by username/email

add pagination to /api/users

add support of id based filtering

add num_pages field to users api output