Added logout feature, improved login speed

Made the "Login/Create Account" button switch to say "Logout" when the
user is logged in, and made the button be dynamically generated by
cookielogin.js.