Fix some bugs.
Ignore bower components.
Add tests.