Add style image state and listener functions to API.

Allows application code to be notified when the image is loaded.

Unfortunately, the enum will no be exported, see https://github.com/openlayers/ol3/issues/954
What happens if the abstract methods are not `@api`?