Added log/stage creation functions, new util module, moved keyboard module to new general io module (which now also includes mouse), updated demos, various big fixes