BiGR: Harnessing Binary Latent Codes for Image Generation and Improved Visual Representation Capabilities