Rails app for statistics and event collecting