Handle creating and updating user profiles.

GET /api/userprofile/504/?format=api