There's a setting in the options... not sure how it works exactly since I've never tried it. I've heard people complaining it makes chasing heroes a bit harder at times, but that's all secondhand information.
For last hitting you can just tap 'S' to cancel the attack command... it's all I do.
--
No amount of planning will ever replace dumb luck.