Core: Split Window stuff into files from core
obt: Can now generate dist-dev/index.html
Core: Added main.js again
Windows: Small bugifx
Core: Bugfix after split
Core: Moved more code to handler