Refactored api and game.
Initial commit of the fractal sample.