Added remember me to login system

Also fixed some potential bugs, and added a random string function to
bootstrap, and added some documentation