Fix /p/post/user route not saving referrals

Make user id optional for /p/id/uid
Add /posts/id/raw route for debugging failed post processing

As per https://meta.discourse.org/t/convert-post-id-to-category-post/17466/2?u=riking