Added migration for the rating field for the submission model.
Added rating calculator class.

The rating algorithm is based on the elo rating and is very similar to the
USCF and FIDE rantings used in chess, the only difference being a K-factor
which is a constant and represents the sentivity of the algorithm which might
actually suffer changes in time.
Also added test.