Added game state and state factory.

GameState class and StateFactory protocol is functional, except for some missing input class.
Added input abstraction.

Input abstraction is now available via TouchInfo and AccelerometerInfo. It's just a class containing input data, but input on iOS hasn't been saved into these classes.