Configure Travis to retry npm, bower installs

http://blog.travis-ci.com/2013-05-20-network-timeouts-build-retries/
Signed-off-by: Alex Coles <alex@alexbcoles.com>
Merge pull request #1164 from opf/feature/use-travis-retry

Configure Travis to retry npm, bower installs