How to add a new node to Cycles

I documented my efforts on adding a new node to Cycles. Might be useful to other starting out. Be warned though it is not an easy read!

cheers,

– Michel.