Fixed broken migration when table 'file' doesn't already exist.
Fixed new user being created without lastVisitedAt value.
Fix breaking if os.tmpDir() is not ended with a slash.

Also changed web handler to use our createTmpDir() function instead.
Merge branch 'first-run-fixes', fixing bugs with first runs.
Incremented version to 1.0.1.