using nodemon to restart the server.
Added some stuff to deal with cookies better.