ssh user@host << EOF
Your script
EOF
Beware of local variables interpretation though!
But if you need a mix of local and remote expansion, you're back to doing a lot of escaping.
But if you need a mix of local and remote expansion, you're back to doing a lot of escaping.