Add get_rating to PainSource model

Also add test of the new method. Also change some model fields to accommodate
Merge branch 'feature-get-rating' into develop

Add get_rating method to PainSource.