Load CM after the animation, fix dir upload preview, add sanity checks to all GETs and POSTs