Some fixes and changed get_autologin function.
Added .gitignore.