Fix broken spec

Should have been fixed with previous commit.
Bump ruby version
Finish implementation of StudyCache::average_score and use it in view
Small improvement to spec file
Move method that caches a study's scores count
Add TestCache for testing that a method reads and writes to the cache as
expected
Add capistrano rbenv