Started on JS API, added GPIO and PWM

Added GPIO and PWM functions, along with a test webpage and server.
Merge pull request #1 from kres/js-test

Started on JS API, added GPIO and PWM