fixed cookies

had to make the login ajax .post calls for logging in and creating the
currentUser cookie non asynchronous(synchronous?) so now it will
remember the user who is currently logged in
fixed cookie time

i think php wasn't reading the remember variable as boolean so i made it
0/1 and changed the way cookies are made.  it should accurately create
cookies now