I created this script for my Masters project at Bournemouth University. It allows you to create almost any rig in a modular fashion by simply drawing points and creating rig modules in between them.
It also has features for space switching, animation geometry and some hard coded deformation systems for the hip and shoulder.