Fixed a bug where the replace plugin would search the line history in the wrong order.
Fixed a bug where certain patterns in text ( usually urls ) could trigger replace unintentionally.
Made Replace act on the first instance of text instead of globally.
Added optional /g for global replace mode.

Moved the replacement logic into the Replace class, it should not be a responsibility of the Linehistory class.