Corrected setting of logged in state
Added filter to published posts when not logged in
Load initial loggedIn state from a meta tag rather than a json request