use a style cache for performance reasons
add some docs
add code comments
Merge branch 'master' of https://github.com/bartvde/ol3-templates into gh-pages