Moved files around. Added the first real console functions.
Code cleanup.