Require bower instead of spawn

I see no need to spawn bower processes when we can use bower as a node module. Spawning adds unnecessary overhead and also might be problematic for people who don't have bower in their PATH, etc.

Also, second commit fixes some old bugs with resolving of the main path for bower components.