Added first code of the statistics resource. Some more testing needs to be done though.