Added FPS limit and separate game logic function

tps is Ticks Per Second, for client-side logic, fpsLimit is framerate
limit for the renderer.
Also added another task, to set up multi-threaded server processing.