Fix many minor bugs, deprecated base chunk system (replaced with homes), fix code style mal-indents, silenced several PhpStorm warnings