Pull the user's ID from the request

Instead of asking for the user's ID, pull it from the request, since
the user is logged in prior to making the call.
Minor performance tweaks

Update the code to improve performance of the main API path.
More attempts at improving speed

Refactor things around a bit