Move echo_title() from header.php to functions.php.

Also simplify it and fix the bugs in it.
Minor cleanups.
Move more functions from header.php to footer.php.
Major cleanup of make_link_bar.
Fix HTML indentation.