use new getLoggedIn() js function instead of jquery.cookie.
Merge branch 'master' into topic/fieldbook_ajax