I have not seen the spec and I do not know how feasible it would be to implement it as part of the application when the OS is already supporting it directly. I know nothing about upnp but if, for example, it's simply a matter of afsd making a single call to the OS to register the service, that would be pretty easy to do. My guess is it's a bit harder than that.