MT#5599 Rework auth/authz for pwd-based API access

Cleanup unnecessary realms.
Use roles instead of realms for authz.
HTTP basic auth for api access.
Use admin/reseller roles instead of api_admin/api_reseller.
Fix API::Root invalid_user detaching.
MT#5599 Define new auth module dependency.
MT#5599 API: remove middleware handling.