Added ability to enter a few characters at the prompt and then search backwards/forwards through the history

Not sure if ``lib`` is the correct place for the ``bind`` statements, though I wouldn't be without these two commands! :)