Improve error reporting for mkdir and init_db failures
Don't dump a giant backtrace on a user if there's a problem creating the data directories or the database.
Also undo the init_dirs() stuff from a232b793. It didn't work right. Running "flask init-dirs" would first cause init_db() to execute, which would fail if the the mkdirs hadn't already been done ahead of time.