Devices implementation for motor.js

Includes support for 3-pin directional, brake and current sensing pins. Also adds tests and additional documentation. 

Addresses #214 
Impacts #216 and #260 

Lots of history on this in #288