Pin class wrapper around pi-gpio with events and promises.