Use $interval, not $timeout, to poll backend

To allow end-to-end testing with Protractor. See "Waiting for Page
Synchronization" at
https://github.com/angular/protractor/blob/fcd973b/docs/timeouts.md
Limit sha display to 7 digits

To keep the UI neater.