Automatically populate uid on POST requests

See https://drupal.org/node/1979260