fix grunt task error
fix index.html corrupt by bower
add retry for ws calls