Extract top projects query object

This removed a bit of duplication from the stats controller.
Extract duplicate context query from controller
Increment list counter in project view

This fixes a bug where if you have fewer than 10 projects, your top 10
projects were listed as:

6 - n/a (n/a)
6 - n/a (n/a)
6 - n/a (n/a)
6 - n/a (n/a)

rather than

7 - n/a (n/a)
8 - n/a (n/a)
9 - n/a (n/a)
10 - n/a (n/a)
Don't link to null projects

If you have fewer than 10 projects, then empty running projects were
linked to with the path `/projects/-1`.

Copy/pasted the list strategy from the other project sections in the
same partial so the duplication becomes explicit.
Simplify stats projects view

Use `each_with_index` instead of hand-wrought index to loop through
projects, and use a partial for the duplicated empty list items.
Collapse duplication in stats project view
Merge pull request #161 from kytrinyx/contexts-stats

Extract duplicate context query from controller
Merge pull request #162 from kytrinyx/projects-stats

Extract duplicate top projects query from stats controller
Merge pull request #163 from kytrinyx/stats-project-view

Simplify stats project view
Give the Context.state column a default value of 'active'

SQLite does not permit a NOT NULL column to have default value NULL.
Fix code formatting in AddStateToContext migration
return aruba to Gemfile and fix aruba scenarios
do a small sleep to hopefully aviod an Element not found error