Add /api/people

and do a bit of refactoring.