Added an API. Added Javascript to backend.
Fixes #10. Fixes #12.
Merge branch 'master' of https://github.com/simonser/lighp