Make any switch support double tap, tap and hold etc

What are you goals with the multiple taps? If it's for lighting I wrote this app:

It might not be exactly what you're looking for; I wrote it to emulate Hue Dimmer behavior with "single tap" devices (though it can also work with multitap devices). Unlike devices with "built-in" mulitaps, it doesn't wait until you're done to execute actions--every push/etc. does something (whatever is configured)--but that is how the Hue Dimmer works, basically rotating through scenes with each push. But might help if your goal is lighting!

In any case, I'm not aware of any drivers that do this, though it would certainly be possible (but also device-specific). All solutions I have seen have been at the app level with something like this (which depends on the app doing what you want; a rule would also work).