Ready to use version of ProppelerJS (http://pixelscommander.com/polygon/propeller/).

This will allow to assign to any DIV in your pages the capacity to rotate based on touch or mouse interaction with zero effort.