Spin network code done.  Some testing still needed.