added migrations, added username support, misc fixes, and new commands 'backup' and 'user'