Feature/create tmpdir for user on

Previous incarnations of the PR were screwed up due to mismanagement of multiple topic branches while working on multiple independent changes at once. This time the PR is coming directly from a feature branch.
@anodelman ping