Pass useful globals to HTTP 404 code
Fix password-based login

It broke during refactoring the user class.
Fix image hash insertion in migration script

Also:
 - Correct typo
 - Store intermediary output in /tmp
Set fetch mode only during fetchAll()

was previously before PDOStatement::execute() in DB::query_nofetch()
Refactor User constructor
Add user image count
Convenience getter for user avatar path
Image class
Image browser uses new image class
Migrate image viewer

Comments and tags are still missing though.