OH2 Z-Wave refactoring and testing... and SECURITY

This isn’t for ALARM V1, but should be adaptable. I think there are some other examples in the forum for V1 too.