Speed optimize: poprank and attribute xml.

* Do not try to calculate poprank if we have no poprank file
* Do not include attribute with value 1 in attribute xml if we have more than 10000 hits
* More time tracking