Statistics bug fix + Velocity 0.1

Now statistics are shown for the correct user insead of the first user
to generate the statistics query. Was caused by insufficient knowledge
about the magic of Hibernate.

Velocity dependencies and copypaste class added. Doesn't do anything
yet.