index.php re-vamp

Main change: editText.php is now merged into this index.php.

IMPORTANT CHANGES:
1. Menu re-vamp. You will now only need <?php menu(); ?> in your theme.php instead of the old code.
2. hostname renamed to host. If you're updating from an older BETA, remember to rename hostname to host in your theme.php (in head -> used in <base..).

Other notes: A few code optimizations (trimming text and simplifying where possible).
Also added auto create two folders (files/plugins) if files folder is missing. We're checking only one because it something would have to be really wrong if only one of those two folders is missing + we save space.