fixed ajax requests so that POSTs will go through, logout button now works
merged conflicts