Rasmus Carstensen blev redningsmanden med to mål, da AGF tog en hårdt tilkæmpet sejr over bundproppen Vejle.