First commit contaning the state engine, SDL framework and the begning of the thread safe rendering