Import anagrimes scripts as of 2013-02-13, first developed on the toolserver.

Change-Id: I911155563eeda410f2d3d515e42ee75573f8fb21