Merge pull request #49 from gwicke/result_tid_index

Add an index on results.tid to speed up result by commit retrieval
Merge pull request #51 from hardikj/new-master

Fix skips Distr page and also save the stas per revision in db
Fix fail Distr page