HID interface for Hammerspoon, controls and queries caps lock state
Portions sourced from (https://discussions.apple.com/thread/7094207).
Functions - API calls offered directly by the extension
hs.hid.capslock.get() -> bool
hs.hid.capslock.set(state) -> bool
hs.hid.capslock.toggle() -> bool