Drawing, dragging and resizing rectangles in RaphaelJS.