Moved cps statistics from base loop to a task.
Added FPS and NPS to base loop.

Needs to be optimized and tweaked.
Added client loop class.
Added server loop class.
Added editor loop.