Final version
Final version

Variance calculation is now included (both in streaming and batch form).

Stats calculated: variance, mean, sum, sum of squares, count, min, max.

Cleaned up code (most of the calculation is done in one updateStateKey
call) and added comments.

verwijnen/spark-stream-stats,verwijnen/spark-stream-stats