Ajax login

I think login and signup are working OK with AJAX now, but I had to force a page refresh (window.location.reload(true);) afterwards to get the navbar updated.

That feels like the wrong way to do it, but I couldn't find a better solution without reworking the navbar.