[SPARK-2395][SQL] Optimize common LIKE patterns.

Oh, sorry, @marmbrus , I got your means.
I will write `xxx%` for starting with `xxx` pattern matching, and `xxx%` will be expanded as `xxx.*` instead of `([^_%]+)%` internally of the `Like`. The same for `endsWith` and `contain`.