Add background() and foreground() methods for Game class

Currently there's no way to stop game loop without completely stopping
everything including audio. With this patch it is possible to continue
playing music in the background while the game is paused.