adding logout. hit letter-q for debugging. moving some js from main.js to utility.js