added object syncing improvements, 301 redirect and logged_out_function for js mak_login_bar