Move I/O out of game API into a proper app (closes [c68bc6d850])