Move cursor to end of line when accessing history in console.
Use local sinon, fix browser tests.
Merge pull request #192 from FuegoFro/console_history_end_of_line

Move cursor to end of line when accessing history in console.