fix formatting, ensure empty homedir cannot return
Preserve tilde, fail consistently, check for POST success earlier
Preserve tilde, fail consistently, check for POST success earlier
clarify what 404 means
Merge pull request #4 from jpjp/patch-3

fix formatting, ensure empty homedir cannot return