Alpha stages of engine's core

Stuff added: game loop, states, state manager.