fix weird login loop for edit-restricted pages while logged in
Ensure "view source" button appears for logged in users on protected pages
Slight code formatting tweak
Merge pull request #4050 from WikiaVolDev/VOLDEV-74

VOLDEV-74: fix weird login loop for edit-restricted pages while logged in