Enable caching on os_slideshow_box

https://github.com/openscholar/openscholar/pull/6151#issuecomment-44826608
- [x] Avoid caching for randomized slideshow.
- [x]  Gather all assets (js/css/settings) for caching.
- [x] Check behavior when file is changed.
Let's add some PHPDOC.