Add code examples to @api functions.

Title says it all.
Hrm.  Seeing this makes me want to remove `ol.coordinate.createStringXY` from the API (in the one case where it is used, I think supplying an anonymous function that calls `ol.coordinate.toStringXY` would be much clearer).

But that is clearly a separate issue, and your documentation here is good.