Spring is simple, just a non-powered piston that expands upon unpause or the removal of an obstruction.
Motor...is far more complicated...but possibly could be another solution to moving solids. The idea is simple, when used with frame it rotates a circle of pixals aroud it. Diameter would be set by tmp and speed (in frames per rotational unit) by tmp2. Now,...should it rotate in degrees or radians? 8-P Anyway, I'll look up a rotation algorithm (there has to be some for video games) that might be compatable with Powder Toy. I'll post a link if I find a good one. And...yes...if you try to turn a square only a circle of it will turn. If the edges of the circle go outside the square then the square will be destroyed.
EDIT: The add box says that 2 people are spying on me. (OH GOD! WHY?!) Anyway...trigonometry,
http://en.wikipedia.org/wiki/Transformation_matrix#Examples_in_2D_graphics
No, that's not what I meant. I meant a maximum movable pixals limit like piston.