API: UserResource and Unit filtering

Smaller chunks should be easier to land.