Refactors the image loader with spin.js
Only show locked pages from current site at layoutpages.