Move autostart up in the chain, add registration for gnome-session
Fix registration