Move dependencies to js/lib.
Initial implementation for switching lights on.
Add .jshintrc to project.