adds bower.json for dependency management
fixes bower deps, require paths and requires

NOTE $bower update is now required each time the lightsquare js
is modified, because it's installed as a bower component (by copying
/js to /bower_components/lightsquare)