Ref #227, updates statistics to show correct stats for file clicked in document shares using an ajax call.
removes duplicate functions/variables from the events model which was preventing the events module from loading.