bower: ignore dot files, build and tests

Add 'ignore' directive to bower.json.

This ignores all dot files, test directories and build directories. Fixes #1105.