Bulk commit. Un/redo rotate and crop functions now working, plus JS tweaks.