server: refactor game app to separate package "app"