Rails app for statistics and events collecting