Added history to the terminal

Copied straight from kalpana, bitchiz.
Removed files unused after the rewrite