add support for more convenient post URLs

/p/:username/:post_id-plus-optional-string redirects to
/posts/show/:post_id now if :username is a local user and the author of
the post with id :post_id.