Statistics service implemented

A statistics module to the webservice has been implemented, making it
possible to retrieve data about an image for client-side calculations,
such as bandwidth etc.