Started on JS API, added GPIO and PWM

Added GPIO and PWM functions, along with a test webpage and server.