Only apply live updates during main query and fix dashboard live updates bug

Resolves #675 

@shadyvb please review
Is there any script being loaded on every page by Stream? That we can put this function in a global scope so it can be access as a sort of helper function.

```javascript
function regenerate_row_alt( $row )
```