Thanks a million for this :) I thought this was going to be horridly complex but it seems to be fairly straightforward by the looks of your example.

@Dave – I doubt the core guys will have any qualms with this. There are many, many different reasons people will need to use a non-official repository, particularly for non-distributed plugins.