Added history browsing to prompt.

Use up and down arrow keys to browse old prompt entries.