Improve project setup a bit.

* Add package.json to install less and bower locally,
  rather than npm install -g. (Run bower install as a
  postinstall step).
* Move bower.json to top level (but still install in ide/static).
* Mess around with paths, try to be explicit in code about
  where things are.